It's nuanced. Islamic advancements in science, medicine, philosophy and astronomy, etc, brought a lot to Western civilization during the European Dark Ages. We'd arguably be a lot further behind without that. We in turn shared advancements with them. Civilizations develop fastest when they collaborate.
Islamic countries also vary very widely by culture and it's not monolithic. The rise of more conservative cultural and anti-science trends in some Islamic countries is sometimes a recent thing. It's always changing. Pre-revolutionary Iran was a lot more liberal in some ways, for example.
Also, one could probably argue similar things about the Bible and Christian countries' rejection of science holding back progress (and punishing/executing those who spoke against mainstream theology).
https://www.researchgate.net/publication/375985386_The_Golden_Age_of_Islam_and_Its_Impact_on_European_Technology_A_Historical_Analysis