Who knows? However, if he had decided to sigh in frustration, he should be able to.
He should not be able to punch a cop.
People express their resentment and anger by yelling at cops every damn day. Most don’t get violent.