Birth control

If you have a std can you still get on birth control?