You can get an STD by having vaginal sex (penis in the vagina), anal sex (penis in the rectum), or oral sex (penis in the mouth or mouth on the vagina). STDs are the second most common infections ...