I know this works electrically, so it’s more of an NEC question.
Can one light switch control power to another?
Here’s my use case. My basement (unfinished) consists of 3 rooms. I want the light switch at the top of the basement stairs to power the main room lights plus power a light switch in either of the other two rooms.
This way I can choose to have lights on or off in the other two rooms but then the switch at the top of the stairs will turn all the lights off.