Yes it does.
Notice how STDs were far far less prevalent in the past than they are today, and far less prevalent in countries with a healthier attitude on relationships and sex.
To your example specifically: don’t cheat either? Are you implying that “people cheat on each other, so there should be no moral standards”?
https://wisevoter.com/country-rankings/std-rates-by-country/...