Yes, in fact. This happens to me fairly frequently.
After playing Half-Life 2 extensively for a few days, the first thought when rummaging around under my computer desk in near-total darkness was "Press F for flashlight".
I regularly make references IRL to Eve Online while cooking, trying to invent and manufacture T2 food. Also, whenever I figure out some difficult or complicated problem, I can always imagine that little automated voice in the background going "Skill training completed".
Occasionally, I'll look for the objectives list when I'm very, very bored - or when I had an idea, and forgot what I was going to do.
Sometimes, on bad days, I think "Hit escape and load up the last autosave". A couple days ago, I had one of those dreams that are so real, you only realize they're not real when you wake up. It's quite cool when, in a dream, you want to go back to a prior save point - and then you wake up.