Yes, but when you run the installer it will try to install on your main drive unless you tell it not to.
When you run the installer click 'Customise', then 'More', and enter the drive where you want it to be installed
You may be better using the Portable version which doesn't need to be installed at all and so can be run from an external drive or even a memory stick.
Simply unzip it (or just open the zipped folder) and double click on CCleaner .exe to run. https://www.piriform.com/cc