It depends ... the straight forward answer would be NO, and it would be supported by many "patristic" islamic writings from the second century of Islam in which the studies of islamic sharia and laws flourished in Bagdad, Damascus and Basrah. However, many accounts in references that muslims consider authoritive and are asked to follow it without discrimination indicate a contradiction with the islamic official position about the matter.
Many of the islamic Khalifs of different dynasties and different ages have engaged in homosexual activities, although I would not take it as evidence that Islam condones such behavior. Actions of people should not be taken as references. Among those would be Al-Watheque, Al-Ameen, Yazeed, Al-Mu'taseem, and many others. One of the most notable arabic poets EL-Mutanabee is known to be an open homosexual.
However, the question of islamic doctrines is not easy to study and needs really a heavy comparative in depth treatment of various authentic references to come up with an idea about what really happened. From a non-islamic perspective, Islam is tied up with politics of the arabic penninsula at the time and with various cultural factors. The prophet, a genius and a master politician, honed all that into various doctrines which contradiction is obvious but did not raise concerns among his followers because they understood the nature of his mission in clarity that is not present for the muslims in this age. The prophet moved from one doctrine to its opposite with ease to appease certain groups.
Take another example:
One of the issues that separates the Sunnahs from the Shias is something called " The marriage of pleasure". It is a permit to have sex with a woman or a man from a certain period of time for a certain amount of money and then it is over without any further obligations from both partners. It was allowed in the Prophet's time and both sides agree on this issue. Where they disagree is whether it was allowed on a temporary basis and then totally forbidden or whether it continued. The Sunnahs believe it to be like adultry and that it was only a temporary permit for the friends of Muhamed on a war mission to have sex with women because they left their wives home, whereas the Shias do not believe it got cancelled at all and still practice it.
When you read arguments from both sides, you come up with the natural conclusion about what caused this confusion. The "pleasure marriage" got permitted and cancelled on seven different occasion as documented by islamic history books, and the question becomes whether the last decision on this "marriage" by Allah was a permission or annullment.
It is never a straight forward answer, and that is why so many fatwas appear that are contradicting but yet supported by various authentic islamic sources. One of the most interesting religions to study.