Just like all things, both nature and nurture are strong factors. Certainly genetics play a factor in IQ, just as they do with other personality traits such as extroversion, or physical traits, such as height. Set in stone would be a huge exaggeration of genetic causation, but people will have certain propensities from birth.