Question

Okay so I am scheduled to get the depo shot Wednesday, and well me and my boyfriend just got done having sex, and he came in me. He thought because I was getting the shot Wednesday, that everything would be alright. Well I know that is false, so my question is, if I take plan B, will I still be able to get the depo shot Wednesday?