Can I delete the homebrew cache directory on Mac?

I use cleanmymac x and it suggests that I delete the directory. Is it safe to do so? Are there any other concerns while cleaning up system junk that might harm developer files on my Mac?

Cache directories are safe to remove.