Can I turn off the heart rate sensor during non activity or will it affect training status?

Also don't wanna sleep with rhe watch will it affect my reccomended workout?