Yes,  I'm sure that a bunch of gay guys knowing that one another are gay would make it much easier to remain chaste /sarc.  And from those whom I've spoken with in the priesthood, there's very little homophobia and very little hiding of homosexuality in the seminaries.  Ask a Jesuit.