Sperm can live up to five days inside a woman's body. So, if you had sex near your ovulation period, you can get pregnant. The sperm stays alive and can lead up to pregnancy, and keeping track of your ovulation period can help you avoid unwanted pregnancy.