That’s not entirely true. Receptive vaginal sex is much less likely to transmit the virus than anal sex (about 17x less). Insertive anal sex is more likely to transmit than vaginal sex, too, so the type of sex you have matters too.
Number of partners, and their sexual habits really matter, too. It’s important to help people really understand their STI risk if we want people to make healthier decisions regarding sex.