Yes. We have plenty of studies indicating that IQ deviation (for lack of a better measurement) is heritable.
This is even observable casually - plenty of people gossip about $LOCAL_FAMILY having a history of Darwin award attempts, or how $OTHER_FAMILY is stuffed with straight-A engineering students.
However, it’s only a component, not the whole story. Intelligence can be built up like muscle - Joe Average who trains will beat out Sally Smartypants who doesn’t.