You can certainly get Caddy functioning behind Cloudflare’s “orange cloud”.
There’s one very common pitfall that some people get drawn into that results in infinite redirection. I’ve written a bit about it here: Infinite redirection - #5 by Whitestrake
Give that a read and you should be pretty well armed to run Caddy neatly combined with Cloudflare’s features.