Is Let’s Encrypt only for non-www domain names?

The Let’s Encrypt certificate will be issued for the domain.com and www.domain.com (if both resolve properly to your hosting server).

In the case when the www subdomain does not resolve, the certificate will not be issued for it.