The Quran does not only allow thought, it commands it. It says that in the creation of the heavens and the earth and the alternation of night and day are signs for people of understanding, who remember Allah standing, sitting and lying on their sides and reflect on the creation of the heavens and the earth. It asks whether those who know are equal to those who do not know, and says that Allah will raise in rank those who have been given knowledge. It tells the Prophet ﷺ to pray: 'My Lord, increase me in knowledge.' And it warns against following what you have no knowledge of, since hearing, sight and the heart will all be questioned.
The Prophet ﷺ said, in a hadith in Sahih Muslim, that whoever travels a path in which he seeks knowledge, Allah makes easy for him a path to Paradise through it. For Muslims, therefore, studying is part of worship, whether the subject is the Quran or the natural world. This is one reason why schools, libraries and observatories became part of Muslim cities in the centuries after the Prophet ﷺ.
Islam also recognises that reason has limits. It is a tool for understanding what we can observe and work out, and revelation provides guidance about what lies beyond it, such as what happens after death, which no experiment can settle. The two are meant to work together, not to be set against each other. If you have questions about Islam, the Quran's own approach is to welcome them.