Could you get pregnant

Si

I got you can get pregnant with unprotected sex… but what if your period starts the next day after you had sex ? Is there still a possibility tht you could be pregnant?