Do dreams have meanings?

Bc i dont choose to dream about certain stuff and they just come for example i met someone online we started talking for months and we both fell in love with each other but then i had stopped talking to him for 2 months bc of some reasons.. Some how he found his way back to me and we just picked it up where we left off and i just have been dreaming about him these past two nights and i dont know why bc i dont chose to dream about it and thats why im wondering if theres meaning behind dreams.