HI , Depending on whether it is a standalone machine or you are trying to restrict at organization level , please refer to the below to achieve it
You can manually disable Microsoft Teams auto start in its settings. Open the Teams app and go to Settings > General > Application. Uncheck the Auto-start application option. Restart the Microsoft Teams app.