Exactly. AGI is explicitly the goal, where AGI is defined as an AI that can improve itself autonomously. Training an AI to make improvements to itself is training an AI to program.