Is there any Buddhist teachings that monks should have a role of serving society in addition to teaching Dhamma?

The history of Buddhism tells us that when the Buddha convened his first group of 60 disciples before sending them on the missionary work, He instructed them to go separately on a journey for the gain of the many, for happiness of the many, and for helping the world. This shows that the Buddha advised his disciples to serve society. The serving should be done appropriately to the status of the monk. To put the teaching into practice, to make oneself an example, and to teach the people are the main functions of Buddhist monks. Usually monasteries are the centres of communities and social welfare. In case of various disasters, monks will extend their helping hands to the people as much as possible. To serve society in the way of charity or other social work is also allowed for monks, providing it does not contradict the monastic rule.