Hello,
WooCommerce > Accounts & Privacy > Account creation > Allow customers to create an account during checkout
Regards