Yes, this is not a myth.
In many dialogues of Plato, Socrates is presented as a homosexual, attractedparticularly by young youths (including Alcibiades). According to Socrates, only thesex between men can achieve the idea of beautiful bodies, the male / female relationship is reserved for reproduction.
The term “Socratic relationship” is still a homosexual relationship.