Can one replace a tungsten bulb with a compact fluorescent bulb?

Yes, if it fits the socket and the light fitting, or lamp fixture, with its cover or shade.

You will not be able to dim the compact fluorescent as you did the incandescent (unless you have a really fancy dimmer).