do dreams mean anything?

I heard dreaming of your ex means they are thinking about you? Is this true? Do dreams mean something or are they just random? What are your thoughts..