Yep, all the time! There is a theory that many problems can be solved while sleeping via dreaming. When you are asleep, your brain doesn't have all the outside stimulus that is present when you are awake. It gives your brain the opportunity to focus on the problem at hand! I have taken 2 different Psychology classes and both of them supported this idea.