Hi,
WooCommerce > Settings > Accounts & Privacy > Guest checkout > Allow customers to log into an existing account during checkout, Account creation > Allow customers to create an account during checkout
Read more in documentation of WooCommerce plugin.
Regards