How the Group is created determines that.
So with Planner, Sharepoint, or outlook etc... The Group should be visible.
The associated Group created with a Team will not be.
https://learn.microsoft.com/en-us/microsoftteams/office-365-groups
You'll have to hide it afterwards:
Set-UnifiedGroup -Identity *** group email address*** -HiddenFromAddressListsEnabled $true
or
Set-UnifiedGroup -Identity *** group email address*** -HiddenFromExchangeClientsEnabled $true
Depending on how you want to hide it
https://learn.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps