Not work, but I have nightmares and dreams while going through school. I was tormented, I couldn't rest my brain for a second. I was constantly going through calculus and programming in my head, especially before am exam. I was literally practicing questions and trying to figure out problems in my sleep.