Birth control

I'm sorry for asking this but idk what to think

If you go to the doctors to get birth control butt your sexually active do they test you in case your pregnant ??? Or no