Dogs can control their tails and their tail wags, but it appears they often start wagging out of instinct, not conscious thought. It's kind of like a human frowning. You might begin frowning as an ingrained as well as habitual response to, say, an inappropriate joke, but you can return your mouth to resting, smiling or a deeper frown at will.