If it is something that is normally considered volunteering, such as wheeling meals at the local hospital or similar unpaid work, it's ok. Unpaid internships and other competitive positions can't be held, though.
To avoid boredom while waiting for PR ..... is voluntary "work" allowed without a permit?