Yes, camels spit as a defense mechanism when feeling threatened or agitated, projecting a mixture of stomach contents and saliva. This behavior is more akin to vomiting or throwing up than simple spitting and is intended to startle, distract, or bother a perceived threat. Camels are ruminants and naturally bring up food from their multi-chambered stomach to chew it again, and spitting is an extension of this process when they feel provoked.