Yep, you can use directional, point, and spot lights in shaders.
But the big question is, how do you want your shader to be? Technically speaking, you are still restricted with 8 hardware lights in shader. What you can do is just fake lighting by some per pixel lighting calculation, which is like adjusting the color value of each pixel manually based on your requirement.
Hmm... I guess this is as clear as a mud.
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/