Yes, and an important XXth century philosopher named Miguel de Unamuno, says that memory is the very foundation of your personal identity. So you can see how it could be important when it comes to dreaming.