Plan B!!!!!

I had sex last night and somehow the condom slipped off without either of us realizing. He isn't sure if he got off in me either. I was also drinking and wasn't feeling good before this even happened. I puked this morning as well. Im also fertile right now. I'm freaking out because I never get sick after drinking and we've already decided to go buy Plan B. Does it work? I've done research and it's still within the 24 hours so it should be 95% effective. I just need educated on Plan B because I'm terrified it won't work.