How does pre-pregnancy diet affect your baby’s gender? Scientific analysis of the truth about how pre-pregnancy diet determines whether you will have a boy or a girl. Whether you are a couple preparing for pregnancy or a family that already has a child, it is common to pay attention to the gender of the baby. Some people say, “What you eat determines your baby’s gender.