True... But don’t you need to have a certificate applied to the domain first for the script .htaccess file to see?
You definitely need an ssl certificate in place before using htaccess to do the redirect but it’s the browser that sees the certificate. The htaccess file just does a 301, permanent redirect from http to https.