Caste system of India is somewhat unique in the sense that it gets superimposed on almost every religion in India.
So no, Muslim/Islam religion hasn’t escaped caste trap in India. There are upper caste, lower caste etc. For instance, leather/tanning work is typically done by lower caste Muslims compared to say a merchant.
Let me further drive home my point. “Lingayat” is a religion created explicitly to be outside of caste system. To an extent they consider themselves to be of a different religion from Hinduism. Though superficially you can’t tell the difference because culturally they are very similar to Hinduism. But after a few centuries, Lingayats now have their own caste hierarchy. Almost parallel to Hindu caste system.
https://karepass.cgg.gov.in/CasteReport.do?actionParameter=C...