Oh yeah. I think it's almost like there's a really active part of my brain that does programming... If I wake up in the middle of the night, if I start thinking about my latest project, bam, I'm wide awake and going back to sleep is way off.
It's almost like the old crock of "you only use 10% of your brain"... when I wake up, I'm on 10% mode, but programming thoughts spin up the whole engine.