Question: What religious activity was responsible for the growing demand for hostelries?
Sentence: A traveller in the early Middle Ages could obtain overnight accommodation in monasteries, but later a demand for hostelries grew with the popularity of pilgrimages and travel.
Answer in sentence: yes