Yes, that is the correct way to address this. Remember that the changes made on-premises need to be synced to Exchange Online first, so it will take some time. If the changes are not reflected after sync has run, you can also run the cmdlet on Exchange Online side:
Set-Mailbox smb@contoso.com -Type Regular