Yes, it is possible to get pregnant if you had sex two days before ovulation. Sperm can survive inside a woman's body for up to five days, so if you had intercourse close to your ovulation date, there is a chance that sperm may still be alive when the egg is released. While the chances of conception are higher when intercourse occurs closer to ovulation, it is still possible for pregnancy to occur even with a two-day gap. It's important to remember that every woman's cycle is different, and factors such as sperm health and fertility can also play a role in determining the likelihood of pregnancy. If you are trying to conceive or concerned about pregnancy, it is recommended to consult with a healthcare professional for personalized advice.