Yes, when you add your site to CloudFlare it will work like reverse-proxy and also blocks some attacks. But if your origin IP address exposed you should make some extra configurations.
I assume you're on VPS. If you, please make sure your web server allows connections only from CloudFlare IP's...