Plan b

Whenever I have sex,the guy uses a condom but last night I had sex and the guy finish inside of me. This has never ever happened to me!! It’s my first time. So what I did was take Plan b pill today (within the 72 hours)This is my first time.. I’m so worried that it won’t work. Someone help