If you click on your username in Teams in the top right and click on 'Settings' from the drop down, you'll see an option for 'Auto-start application'. If you turn this option off it'll stop teams from automatically starting when you sign into your PC.