No. These commands are no longer valid unless you are still using v10 or v11 ERPNext with the older python 2.7 files.
If you are using v12 or v13 there is a much better way to get the SSL certificate from let’s encrypt. See this:
The method described in the above post is probably the most fool-proof I have ever used. When you run the command it actually displays a list of the sites and asks you which one you want the certificate to be made on. I cannot imagine doing it any other way now.
If you are looking for a complete install and SSL certificate set of instructions, then try this one. It uses the same certificate instructions in the above post but includes the ERPNext install as well: