Can I use any shaped bulbs in a lamp if the base is the correct size?
No problem at all as long as:


The bulb doesn't touch the fixture (except the base, of course)
Heat is dissipated properly. Usually not a problem as newer CFL and Led bulbs often use far less power and generate far less heat than the fixture can handle