It's possible to build test plans using JMeter Java (or Kotlin) API so it's possible to update existing test plans as well or generate "skeleton" from Java or Kotlin code.
It's also possible to get the code for your current test plan from the context menu:
More information: