plan b

so i’m ovulating today and i had unprotected sex with my bf and he had pulled out, i also took a plan b right after will the plan b still work if i’m ovulating?