Could you get pregnant 1 day before your period?!?! No judgment please or smartass comments thanks!!

So i had unprotected sex with my bf a day before i got my peroid and he came all on me. (Sorry tmi) and i was wondering can i get pregnant?! Is that ovulation time? Im freaking out!!!