Period sex v. Pregnancy

Maya
My boyfriend and I had unprotected sex and he came before he pulled out but I'm on my period. Should I still take a plan b or should I be fine? I don't want to have to take it if I don't want to..