Yes. Transgender people were known to have played a role in the Ottoman Empire and Mughal empires in medieval India. They held important positions in court such as those of generals, administrators, and advisors. Many travelers have documented the elevated status of trans people in the Mughal empire, specifically in harem management. They also guarded the tomb of the Prophet according to the British traveler Eldon Rutter’s travelogue in 1925.