Help!!

Ok so my period ended around a week ago and two days after it ended I had unprotected sex. I got the morning after pill but now I’m bleeding again? Does the pill effect the cycle or does anyone know what is happening