Any existing SharePoint Online site can be promoted as a Hub either from the SharePoint Admin center by selecting the site and clicking on "Register as Hub Site" or with the PowerShell cmdlet Register-SPOHubSite. More info: Create a hub site in SharePoint Online