Like Ophelia, I believe they have a purpose...
I think ALL dreams have a purpose (there is always method to "madness")

What their purpose is is another question altogether.
I have a love/hate relationship with nightmares:
I hate them while they're happening, yet find them to be valuable afterwards in that I learn a lot about myself and my subconscious.