I’m scareddd

So about 4 days ago, my boyfriend and I had unprotected sex, but I took a plan b like an hour after. How well do those usually work? That was my first time taking one.. my period is supposed to come soon but I’m scared the pill didn’t work