Plan b

My boyfriend came inside me last night and not even 10 minutes later we got the plan b pill. I'm supposed to start my period today. My question is, how safe am I in my cycle? If he came inside me the day before my period and I took the plan b will I be safe?