Absolutely. Please make sure you're working on the latest version of Bad Behavior to ensure best performance. You would also want to enable the following in Bad Behavior:
**Reverse Proxy**
Turned on
**Reverse Proxy Header**
Change the default of “X-Forwarded-For” to “CF-Connecting-IP”
Note: You don't need to allow Cloudflare's IPs because the CF-Connecting-IP" will restore this.