Want to have a boy? Understand the impact of pre-pregnancy diet on the gender of the baby. In family planning, many couples have their own expectations for the gender of the baby. Although a baby\’s gender is determined by the parents\’ chromosomes, some research suggests that pre-pregnancy diet may have harmful effects on the baby.