Yes that is a strongly believed among psychologist and scientist in the field of sleep study. But unless new discoveries have been made in the last couple of years it's just the best and most sound theory. It is documented thst sleep definitely assist in solidifying memory though. It's actually good to study up for test and such about an hour before sleep. So long as your not over tired.
