Not while in Court (and in some instances, even out of court), he doesn't. There are plenty of things that an attorney can say that can get him fined or jailed for contempt, or even disbarred.
Specifically because certain things he might say would deprive others of their Constitutional rights.
Wearing a smudge of ash on one's forehead hardly meets that standard.