Yes you can, although technically, the email address is tied to the underlying Microsoft 365 Group. Thus you need to use the Group-related cmdlets (Set-UnifiedGroup) or endpoint (either the M365 admin center or the Exchange admin center). Here's an example via PowerShell:
Set-UnifiedGroup TeamName -PrimarySmtpAddress ******@domain.com
No, it will not affect any data in the team.