You can prevent Teams from automatically launching as follows:
- Right-click on the taskbar at the bottom of the screen and then click on Task Manager.
- In Task Manager select the Startup tab. (If you don't see a Startup tab, click "More details" at the bottom.)
- Right-click on Microsoft Teams and select Disable. Then close the Task Manager window.