By default, Magento 2 allows guest visitors to complete the checkout process without creating an account. But sometimes merchants want to gather more information about their customers and want to restrict checkout without registration.