kind of gross but yeah ??

Okay so I have never had sex on my period. But this cycle I wasn't bleeding that much the first day so me and my boyfriend had sex without a condom. Don't judge I know it's gross but we were in the moment he pulled out and all. I want to know if I'm good I normally have 28 day or more cycles and My periods last from 6-8 days. I'm pretty much out of risk of being pregnant right? I'm just saying this because this is one of the only times I have had unprotected sex I try not to do it as I get really paranoid. Also I will be starting my birthcontrol pills the third day of my period like my doctor told me to I was wondering if this will help as well because I won't ovulate this cycle ?