It depends on who is marking it, if its just in school, ie in class or an in school assessment then you should ask your teacher. If its for the HSC then you should try not to, as you wont know whether the person marking it would take offence to swearing, eg a nun from a Catholic school.