yes of course. this is about negative feedback (https://en.wikipedia.org/wiki/Negative_feedback) in terms of statistical infection. People who infect each other and who will despite remain loyal to each other will not spread the infection. The child might and as well might not get infected (https://www.who.int/teams/global-hiv-hepatitis-and-stis-prog...) but this is transmission to the next generation. Also HIV positive parents could consider refraining from further procreation, once they noticed it (the infection), while maintaining their closeness and loyalty. This could break the infection positive feedback loop.
Parent comment's argument is that married heterosexual couples are less likely to spread HIV, on the grounds that a married couple won't spread HIV outside of that pairing if they remain faithful to each other.
Begging the question...gay people can be monogamous too, does that not count for whatever reason?