Yes, there are some exemptions.
Below I collected the most common as each municipality has its own rules and regulations. The following, however, are shared with pretty much every municipality. Those who are exempt are:
a) residents in the municipality;
b) people with disabilities, with suitable medical certification, and relative accompanying person and parents who accompany children with disabilities;
c) patients in healthcare facilities and accompanying family members;
d) coach drivers and tour leaders who accompany groups organized by travel agencies;
e) members of the police and military forces, as well as the National Fire and Civil Protection Corps in case of service needs;
f) volunteers who offer their services in the social sector for events and manifestations organized by the Municipal, Provincial and Regional Administration or for environmental needs;
g) people who stay in the accommodation as a result of measures taken by public authorities to deal with emergency situations;
h) university students (only in some cases and upon certain conditions).