There are many Old Wives' tales about pregnancy and giving birth. These are myths, not known to be true. They are still passed down from generation to generation. One is that if you have heartburn, you will give birth to a boy. Another is that the things you eat will influence whether or not you have a boy or girl.
Source: Old Wives' Tales