Yes, and setting your status to "in a meeting", "away", "code sprint", etc. is helpful. These are things that could be automated, I'd consider that a better approach to the problem.
Let people know subtly you don't want to be disturbed unless it's important, otherwise you will be.
Let people know subtly you don't want to be disturbed unless it's important, otherwise you will be.