Can the light be automatically turned off?

this was useful. Thanks!