Hi @Rising Flight ,
Yes this looks ok. Please make sure to install the PowershellGet using the below command in order to install other modules online. Kindly also check the pre requisites for installing it.
Install-Module -Name PowerShellGet -Force -AllowClobber
Reference
https://learn.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-7.2
https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#install-and-maintain-the-exo-v2-module
https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-install#installing-using-the-powershellgallery
https://learn.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online#to-connect-with-a-user-name-and-password
If the above suggestion helps, please click on "Accept Answer" and upvote it.