Advice

My boyfriend and I had sex yesterday and my cervix is open.. He didn't pull out in time and he came inside of me, but I don't think it was a lot.. how many days after you have sex can you take Plan B?