Yes (more or less). You need to think your project as a tree.
- Main scene
- Canvas Layer (instanced)
- KinematicBody2D (instanced)
And you start "main scene".
What's inside AnimationTree? You need to have a state machine called "StateMachine". Never mind, this is valid for 3D. You can do
stateMachine = $StateMachine["parameters/playback"]