Sex on your period

So, I've been on the pill for a month and I'm a few days away from being done with my period. The condom was off when he pulled out but was in backwards, even though it looked like everything was still in the condom? I think I'll be okay, but I just need some reassurance - should I be worried about being pregnant?