It depends on the type of switch you have and its compatibility with your specific fan model. In many cases, it's best to replace your old switch with one designed specifically for ceiling fans that includes both fan speed and light dimming functions.