Can you get one the first time you have sex? STIs can be passed on through unprotected (without a condom) vaginal, anal, or oral sex. Can you get an STD without having sex? Yes, some STDs can be transmitted without having sexual intercourse, but it is not common. For example, a baby could.