To test or not to test?

I am on bc, but I recently was put on antibiotics for a cold I got. I have my upcoming bc shot appointment. Since having sex while on the antibiotics, do I need to take a pregnancy test before my next injections to make sure I’m not pregnant?