Yes by default it will work: Piwik will create automatically websites for your various hosts. See the log analytics script options such as
--add-sites-new-hosts
When a hostname is found in the log file, but not
matched to any website in Piwik, automatically create
a new website in Piwik with this hostname to import
the logs