😭I’m sooo confused

Okay I am 18 and I missed my period two days ago ,when I asked the guy I had sex with if he came in me he said yes. But I was put on the depo shot earlier today could that harm a baby if I am pregnant?