No, in addition to being used a place of worship, mosques are used as a community centers, a place for social gatherings, and sometime have schools that teach the Quran.
Gulevich, Tanya. Understanding Islam and Muslim Traditions: An Introduction to the Religious Practices, Celebrations, Festivals, Observances, Beliefs, Folklore, Customs, and Calendar System of the World’s Muslim Communities, including an Overview of Islamic History and Geography. Detroit, MI: Omnigraphics, 2004. Print
To read Understanding Islam and Muslim Traditions, please see attached document.