Is it possible to turn a light off after "X" minutes of a lock being locked?

I leave before the sun is up in the morning and I’d like to turn on the outside lights then have them shut off after about 5 minutes after I lock the door. How would I create that? The lock is a Schlage deadbolt…if that matters.

**Never mind, easier than I thought. Thinking about it backwards.