Does plan b one step work if you have a irregular period?

Breanna

I had sex for the 1st time an l took plan b one step an I'm worried that it won't work if l have a irregular period that comes every 2-3 months.