Can the code be removed? Dynamically Populating Drop Down Fields [RESOLVED]

I used the code for Dynamically Populating Drop Down Fields located at
https://docs.gravityforms.com/dynamically-populating-drop-down-or-radio-buttons-fields and it works great.

Can the code be removed or does it need to be executed every time the form loads?

The code needs to remain. It is used every time the form is displayed.