Can you get pregnant two days after the shot?

So I got the shot on a Wednesday and had unprotected sexual with my boyfriend on a Friday. I had been on the shot before. I only went a month with out. He pulled out but you never know.  So should I take a pregnancy test? Is that even possible to get pregnant after the shot right after the shot?