In part. Genes do matter. They determine some traits that may make it more likely to succeed in life, but the environment also plays a huge role. For example, even if you are smart and hard working, which may allow you to succeed in life, you may not succeed if you were Jewish and were born during the Third Reich in Nazi Germany. A woman who is smart may not succeed if she is born in Saudi Arabia and she is not even allowed to work or pursue a doctoral degree. If you were an intellectual under Chairman Mao, you could have been sent to the countryside for re-education and menial labor. Further the trait you have may make you a great computer programmer, but it would not be any good if computers had not been invented yet. A doctor may make a lot of money in the USA, but a doctor in Cuba makes little money. The environment determines which traits are successful and which are not. If the environment changes, then what were once good traits may be bad ones in the future.