Plan B HELP !

I had sex with my boyfriend with a condom, it slipped off when he pulled out (after he came). I’m taking a plan b now to be safe. Anything I should know about the pill?