Can you get pregnant two days before your period?

Two days before menstruation is generally not pregnant, but not absolutely, there are individual differences, mainly related to the menstrual cycle.
If you have a regular menstrual cycle of about 28-30 days, two days before your period is a safe period, and the chances of getting pregnant are very small. If the menstrual cycle is not regular, two days before menstruation, intercourse may be pregnant. The time of ovulation is not fixed when menstruation is irregular, so as long as there is no contraception, you may get pregnant accidentally.
Moreover, there are many factors that affect ovulation, such as taking medication, environmental changes or endocrine disorders, etc., may affect the specific time of ovulation, so the two days before menstruation is not an absolute safe period, there is a chance of pregnancy.
If there is no plan to conceive, it is recommended to take reasonable contraceptive measures when having intercourse two days before menstruation to prevent accidental conception.