A woman can get pregnant at any time during her menstrual cycle, including immediately after her period ends. However, the likelihood of getting pregnant is highest during ovulation, which typically occurs around 14 days before the start of the next period. It is important to note that sperm can survive in the female reproductive tract for up to 5 days, so it is possible to get pregnant from intercourse that occurs several days before ovulation. It is recommended to use contraception consistently if pregnancy is not desired.