Yes, dreams are there to help your brain function. They help you store memories, relax and cope with emotions. They can also be analyzed, as most of them have messages that portray your wants and needs. Lucid dreaming
can help with getting to know about yourself even more.