Yes WP Rocket works very well with Cloudflare. I’ve used it on a number of sites that also use Cloudflare. WP Rocket also has a Cloudflare addon included with it. You can provide your Cloudflare API key to WP Rocket and then you’ll be able to apply the optimum Cloudflare settings directly from WP Rocket.
2