yes the throttle position sensor.
what you are thinking of is the pedal position sensor. a throttle position sensor is on what the name says. THROTTLE. and it tells its position. based on resistance being read on a 5v line going in. its a basic potentiometer.
the pedal position sensor works the same way, but on the pedal. the variation of resistance on the pedal determines how far open the ECM is telling the throttle to open. the TPS reads how far the throttle is opening to adjust other variations in the fuel trim. its goes on and gets pretty complicated from then.
what went bad was the throttle position sensor. thats what the code scanner read. if it was the throttle blade actuator, there would be a code for that. its just a stepper motor like an IAC solenoid.
PEDAL POSITION SENSOR
THROTTLE POSITION SENSOR