By then, the damage to concentration has already been made. Yes, you can set your status to "do not disturb". But you have to remember to do that.
Actually, I'm starting to think I lost ability to concentrate because of that.
For example:
https://psycnet.apa.org/record/2015-28923-001
"We found that cellular phone notifications alone significantly disrupted performance on an attention-demanding task, even when participants did not directly interact with a mobile device during the task."
Imagine then what damage random people's voices asking you things while working would do to your concentration.
There's a section on setting manual statuses, including one specific example of "focussing - do not disturb". The animated screengrab below suggests that if someone wants to contact you with such a status set they will get a window informing them and the option to bother you anyway. Not sure how special you would want your handling, but something is definitely there. Though it isn't really clear to me if the example in the screengrab is based on a status or on a calendar entry.
I do agree that this isn't something I would want to work with, and as I wrote elsewhere, if my company had this I would set it to perpetual DND or just not run the software at all.