Yes. Some moves are illegal, and there is a penalty for committing each of them. For instance, spitting, head-butting, and hair-pulling are illegal in the UFC.