I don't think they have headaches like we do but of course they can have pain e.g. because of bad teeth. The way they show it usually is being anti-social, retire etc.
But it is nothing like one day pain, gone the other day (like human headaches).