Plan b

If I had unprotected sex (stupidly) with my bf the day I was ovulating which was yesterday & take plan b today will it still be effective? I’ve heard different things. Like if the egg is already fertilized (bc it was released) then plan b will prevent the egg from attaching to the uterine wall? Idk what to believe.. I’m only 18. I’m scared