What a weird comment. One, why does this only apply to heterosexual men? Second, if you're dealing with self-esteem issues getting laid isn't a walk in the park.
I would say it especially applies to heterosexual men by doesn’t need to specifically applied to them. It’s certainly one of the causes for low self esteem among men, especially developers.