Plan b, will it work..?

Maria

My period is 4 days late and I took a test and came out negative.

Days later still no period, I had sex with my partner. When pulling out the condom slipped. He came inside me. I took a plan b almost right away. This is the first time I take a plan b. Would the plan b work even if I took it when my period was late? I have irregular periods..