Yes it will work as long as you have a neutral in the gang box AND the load is less than 300 watts. I run them for my bath fans and ceiling fans don’t usually have more than an amp pull. Just check the specs of the fan prior to buying. Otherwise look at the new LZW36 switch.