During pregnancy the breasts change, allowing them to produce milk. Breastfeeding causes a change in the hormones that prevents ovulation. If a woman does not ovulate, she cannot get pregnant.