Yep. It’s possible to get a sexually transmitted infection even if your partner doesn’t ejaculate inside your vagina.
STDs can be transmitted through semen, but there are a lot of other ways they can be spread, including contact with vaginal fluid, pre-cum, open cuts or sores, and skin-to-skin contact. This makes the pullout method pretty ineffective way to prevent many STDs. 1 in 4 people that use this method will eventually get pregnant.
Condoms are a really good way to prevent transmission of STDs. If you need free condoms, visit any MS Health Dept. Clinic. Find one near you: factnotfiction.com/clinics
Hope this helps!