Ovulating & plan b

So I was ovulating I had intercourse with my husband he decided to c... And same day that happen i took plan b . Will the pill work or no? While I was already ovulating