Can I get pregnant ?

I was on depo shot , but did not go back to get it again . I had unprotected sex on the 18 . He came in my butt but not in my vagina . Sorry for the tmi lol . Could I get pregnant that way ? Is it possible? I have a 7 month old and haven’t had a period since birth so it’s hard to tell that way