I don't know why anyone would expect otherwise from Teams?
I assumed Teams already did this. MS Lync (Teams predecessor) could be configured to do something similar to this.
This is on work devices controlled by company-run AD/Azure/whatever MS calls it these days. This is not something you need to worry about on a personal device.
This is also part of why I willingly carry two phones while on the clock. When I'm off the clock, my work devices get shut off and kept in my backpack until next shift. Very few people I work with have my personal number, and they know never to use it except for life/death emergencies or memes.