Yes!
Cloudflare supports wildcard DNS records. Within Cloudflare, wildcard DNS records can be either through the Cloudflare Proxy or DNS-hosted-only.
Can I enable Cloudflare on my root domain (e.g., ggexample.com) that is an A record?
Yes!
When using the Cloudflare nameservers directly, you can enable Cloudflare’s proxy service on A or AAAA records.
While Cloudflare can proxy all types of HTTP traffic, it cannot be used for email and special care must be taken if you are proxying the main domain address to ensure the MX record address is not included in the Cloudflare Proxy.
To implement a redirect to www using .htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ggexample.com$ [NC]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ http://www.ggexample.com/$1 [R=301,L]
NOTE: replace “ggexample.com” in the above example with your actual domain name.
It will not protect website’s IP address.