Freaking out !!!!

So I had sex with my boyfriend today with a condom but it did break, I bought a plan b, but I am ovulating. I wanted to know if the pill works "effectively" during ovulation ??