The generation of subsites across all sites can be enabled, disabled for classic sites only by administrators in the SharePoint admin center. When subsite creation is disabled, users won't be able to directly create new subsites through a URL or API, and the subsite option will be hidden from the command bar including classic.