Yup, when you plug in 24V AC, the circuit will output 5V DC to power RPi so you don’t need a separate 5V power source. In fact when you have 24V AC on, you probably shouldn’t use another 5V DC power source, to avoid two regulated sources compete with each other.