Pregnant?

I had sex with my best friend (male) and he came in me, it was a day after my period and the next morning I took the morning after pill will I be safe or not?