WooCommerce > Settings > Accounts & Privacy > Account creation. Here is a screenshot from the setting on our demo – https://prnt.sc/xx4278
Read more – https://docs.woocommerce.com/document/configuring-woocommerce-settings/#accounts-and-privacy-settings
Regards