Is it normal

to fall asleep, and instead of having a dream, you have a flashback instead?