The above would definitely work (assuming you aren't experiencing any slowdowns that would cause the actions to not run within the minute that the trigger fires). But if you don't have a reason to use Rule Machine, this could easily be handled by two Simple Lighting automations: one that turns them on at sunset-45, and another that turns them off at 11:30 PM. (Two very simple rules in Rule Machine would also work: one for each of your triggers, with the actions section consisting only of the "on" or "off" action you want to happen at that time.)
If you're trying to learn Rule Machine, this is not a bad place to start. I would recommend reading the docs to see some examples. If you aren't trying to learn Rule Machine, using it is way overkill for the task at hand. 