Absolutely! It happens all the time. When I am going through a particularly stressful time like with work and I keep replaying conversations I write it all down in a notebook by my bed. I read some where your mind goes on replay before sleep because you want to remember it and think you will forget it for some reason. I hate the way Ambien makes me feel, so I take Meletonin sometimes when I can’t sleep.