Sending of Attitude commands in guided mode

Hi,
I’m still very new to ArduPlane, I have a very simple question, I’m trying to understand the following:

if i’m sending some values of pitch degree through the set_attitude_target command in the guided mode how does it gets processed by the internal controllers -
from my understanding the command goes into the update_pitch() part in APTECS and then does the pitch control for elevator deflection. Is this how it gets processed or am i missing something ?