Usually no. Unless the bulb specifically states that it can be used with a dimmer.It would say dimmable on the package. Even those lighted toggle switches have been known to pose an issue with CFLs.
(The electronics in the dimmer and the electronics in the bulb end up fighting with each other).
You can now buy flourescent and led dimmable bulbs. You have to replace the dimmer switch to make them work. Not too far into the future there will be no more incandesant bulbs made. LED night lights are available that have light sensors. The night lights use 1/4 of a watt of electricity. 25 watt LEDs use 3.5 watts of electricity. There are higher wattage bulbs available.
Standard filament dimmers don't work with LEDs because an LED light bulb has more in common with a computer than an incandescent light bulb. At their lowest dimming levels, standard dimmers don't supply enough power for the LED's electronics to function properly. New LED/CFL dimmers solve this issue by letting you customize the dimming range. You normally save about $50 per year for every dimmer you use. They cost about the same as standard dimmer ($15-35). You can find them here: http://www.pegasuslighting.com/cfl-led-dimmers.html