plan b ineffective?

hi, so i had my period october 3rd-8th i ovulated around the 16th and i had unprotected sex yesterday and i was wondering if it’s too late to take a Plan B because I thought that it won’t work if you already ovulated, I am supposed to have my period on Halloween. Is it too late for me to take a Plan B for it to be effective?