Yes, IQ has everything to do with genes .... if you happened to born in Sudan, you will likely to have an IQ of 80 on average.
IQ trumps resources. For a country to industrialize, need an average IQ of more than 90. If your country is less than 90, either you have a lot of money or resources...