Irregular period and Plan B

Sarah
I have an irregular period and I had unprotected sex yesterday. I'm taking plan b this morning, will it still work?  how i know if it's the bleeding caused by plan b or my period. I'm really scared...