Getting pregnant 2 days before your period is unlikely because ovulation has usually already occurred. In a typical menstrual cycle, ovulation happens about 14 days before the next period begins, so the chance of pregnancy is much lower at this point in the cycle.
The fertile window generally lasts from 5 days before ovulation to 2 days afterward. This is because sperm can survive in the female reproductive tract for up to 3 days, while an egg can remain viable for up to 24 to 48 hours after ovulation.
Two days before your period, there is usually no egg available for fertilization. However, if your menstrual cycles are irregular, it may be difficult to predict exactly when ovulation happens, so pregnancy is still possible, although uncommon.
If you think you may be pregnant, especially if your next period is late, take a home pregnancy test or see a healthcare provider for further evaluation. Early testing and follow-up can help confirm whether you are pregnant.