Plan B

I was supposed to start my period im late by a few days and just had unprotected sex. I took the plan B pill but does that mean my period will be pushed back even more? Is it possible that the pill might not work?