Advice on bc

lily

If i was do for my second depo shot on the 14 and didn’t get it but i started the pills that same day and had unprotected sex on the 17 and he finished inside me is there a chance i can be pregnant? And when is best to test since my period was just spotting randomly