Yes, your device needs to be turned on while you sleep in order to collect all the data the app needs to elaborate on all the results.