Can a script call itself?


I have a script that runs when a condition is met. I want the script to run check if the condition is still ‘on’ and then run again. It runs once and then stops. I know I can create another script that it calls checks the condition and then calls the original script. I’m just wondering if I can do it within the one script. Below is what I have

  alias: 'Flash entry light'
    - service: light.turn_on
        entity_id: light.lightbulb_02
        brightness_pct: 100      
    - delay:
        seconds: 1
    - service: light.turn_off
      entity_id: light.lightbulb_02
    - delay:
        seconds: 2    
    - condition: state
      entity_id: script.intruder_alarm
      state: 'on'
    - service: script.turn_on 
      entity_id: script.flash_entry_light

Take a look at this topic:

Cool, thanks