This is basically the old nature vs. nurture thing. So the answer is similar - twin studies etc. Based on what I know (which is not much - I do not claim to be an expert) I would say that there is undeniable evidence that IQ is in fact strongly affected by genetics.