Yes, but not in every case, as there are multiple factors that cause it.
But a major factor is parasitic infection and that is an effective target for drugs.
https://files.catbox.moe/q4agf7.pdfhttps://www.youtube.com/watch?v=2mG7DbMQ_gMAnother large factor is a stable environment and proper role models and separation during adolescence.
An interesting phenomenon can be observed among young children and also among siblings before the age of roughly 6 - exposure during this phase influences later sexuality.
This is called the Westermarck effect.
This causes siblings not to be attracted to each other in the vast majority of cases.
It also means that boys who grow up with boys during early childhood are less likely to be homosexual when they grow up.
And therein lies the phenomenon - many young boys that have few male friends, but many female friends grow up to be homosexual and they have that exact impression on their male peers.
So it is possible that early childhood social imprinting might trigger homosexuality.
This would possibly yield a social target for intervention, but this is not the only social target.
Of course there are also some nutritional, epigenetic and genetic factors.
Francis Pottenger's cat experiments are a nice demonstration about how lack of dietary taurine can induce homosexual and other abnormal sexual behavior in cats.
Additionally some skeletal abnormalities, like altered 2D:4D ratios have been found among homosexuals, though we have been unable to isolate a gay gene.
Likely complex combinations of genes influence occurrence of the affliction, similar to how these influence the racial IQ gap and others and we simply cannot detect these complex patterns with our modern GWAS, that looks at SNPs.
All in all I estimate that prevention of at least 80% of "real" gays can be cured, though those make up less than 1% of the population.
The vast majority of queers today are a simple societal phenomenon.