Lt. Bob
Spread the Daf!
You are correct.
The tension in the sounding string length of any vibration string is a product of it's mass per unit length and it's pitch. Change one and you change the other. The constants are the mass per unit length and the sounding string length. The variables are the tension and the pitch.
Of course on a guitar we can also change the sounding string length. We don't change any of the other components as we do so though.
thought so ...... I's smart!