Intelligence, like other human traits such as skin color or height, does have a strong genetic component. What if anything we do with that information is a political question, but I don’t think we should try to ignore reality.
Intelligence has some genetic component but nurture plays a huge role in how that potential is developed.
There’s a book out called “Disrupting Class” which has a chapter in it about how young children learn that is fascinating. Very early childhood social interaction with the parents plays a key role. He provides references to the research done in that area. It was in chapter 6 IIRC.
It’s well worth reading.