If your fan's light fixture is for dimmable lights, you can use dimmable lights. Use a dimmable switch for a dimmable light. Otherwise, the light will overheat and damage both the switch and bulb.