Some energy efficient lamps don't like to be dimmed, but you can get dimmable ones. Just be sure the dimmer switch can cope with the inductive load as regular lamps are only resistive and that's what the majority of the dimmers have been designed for.