Yes, see Time Based State Machine [3.2.0;3.4.9] for OH 3.4 and Time Based State Machine [4.0.0.0;4.9.9.9] for OH 4. Though you don’t really need to see those posts. You can go to Settings → Automation and find “Time Based State Machine” in the list, select it and add it. Be sure to read the readme and make sure you implement all the prerequisites first.
If you are OH 4 you will have to install openhab_rules_tools. That can be done through openhabian-config or by running the following command from your &OH_CONF/automation/js folder: npm install openhab_rules_tools
.