Yes, they spit as a form of defense when threatened. The contents don't just include saliva, but also the contents of their stomach. This acts as a surprising assault on anything annoying them.