Yep.
Working at Harvard in the mid 80s I was struggling for a couple days to improve the sensitivity of a test I was doing and getting nowhere. I retired to the bar, had a skinful and woke up at 3 in the morning with the answer. Promptly went into the lab to put the solution to the test (before morning came and I had forgotten) and...................... bingo. Happy man.