Pre-pregnancy diet if you want to have a son. In traditional concepts, many families hope to give birth to a healthy and smart son to inherit the family legacy. Although the gender of a child is determined by the parents’ chromosomes, there are some dietary and lifestyle habits that may affect the gender of the embryo.