taking plan b while ovulating!?!! help!!

I had sex the week after my period and I believe I was ovulating because the kind of discharge I had. It was unprotected and I took plan b the next day. Is the pill still effective even when I'm ovulating??