Is defamation a crime in NSW?

Is defamation a crime in NSW?