How do depo shot work

Amerie

Hey guys so I’ve been on the depo shot since July 19th and I get my next shot oct 11th so am I still on birth control cause I’ve just had unprotected sex maybe like a few days ago n he kinda pre-cum but im not sure if it was inside would I get pregnant or should I be worried i need help