Never took a Plan b, help !!!

Hi, so recently I’ve had sex with my bf and the condom broke and he cummed inside of me and I took a plan b pill as fast as I could but the thing is , I have a very irregular period so I’m afraid if I was ovulating or fertile at the time he cummed in me and now the pill won’t work ? Is it possible it won’t work because of that ?