Psychology and sociology literature suggests that the fact that women are less likely to work in STEM occupations may be caused by gender stereotypes related to differences in math and science abilities. In this study we test whether, particularly parents' beliefs are associated with their children's gender beliefs and with their choices of occupation. We show that the correlation between parents' and children's beliefs is strong. We use High School Longitudinal Study data - survey conducted among US 9th graders, their parents and teachers. Finally, we also test to what extend gender beliefs (parents' and own) correlate with planning to work in STEM fields by highschool pupils. We find that girls are discouraged (and boys encouraged) by parents believing that boys are better in math and science, and that the effect of parent's beliefs are stronger than the effect of pupils' school achievements in math and science.