Will this condition set work as expected (combining and and or)?

I have an automation requirement that has grown arms and legs as I came to write it. Can I check if the code below will limit the automation in the following way?

I want to run the action if;
Guest mode is on (ignore all other aspects).
It’s not the summer AND either of the two people are at home.

  condition:
    condition: or
    conditions:
      - condition: state
        entity_id: input_boolean.guest_mode
        state: 'on'
      - condition: and
        conditions:
          - condition: state
            entity_id: sensor.summer_time
            state: 'False'
          - condition: or
            conditions:
              - condition: state
                entity_id: person.me
                state: 'home'
              - condition: state
                entity_id: person.them
                state: 'home'

Looks good to me.

Great, thanks Tom, well chuffed I got that right first time!