No, you don't rest when you sleep. You only put your body to rest while your brain is still working.