@coffee1066 Everyone else has answered your question, but I'm going to include this:
https://www.scarleteen.com/article/bodies/can_i_get_pregnant_or_get_or_pass_on_an_sti_from_that
https://www.scarleteen.com/article/sexual_health/birth_control_bingo
The best way to prevent pregnancy, is to...