NO. The Iranian mullahs faced the question, and since the Koran said nothing about the issue (transgender changes) and the Koran lists a whole lot of things forbidden, the decision was - it is allowed.
And they see it as a solution to homosexuality. You’re a man who wants to have sex with me? We can give you hormones and surgery and make you a woman. Now you are in compliance with Shariah law, we’ll just alter the birth certificate to say female.
The complications come in when they say no, you can’t live as a woman first to see how you like it, in order to protect women’s privacy. The guy becomes a woman, realizes how oppressive it is, and sometimes demands to be changed back. And they don’t just give you hormones to grow breasts - organs have to be removed to be allowed in women’s spaces.
OMG......did not know that. Wow, thank you for that information.