This is how it is done and is usual but BE SURE the caps are discharged. Use a meter.
The tubes pins should be as straight and perpendicular as possible and there is a special socket for repairing ones whose spacing is out of whack.
You might keep a new regular socket around just for this purpose since those special ones are hard to find.
The reason being that it can make them hard to put in, it causes the spacing to be off, which is why the socket became loose in the first place.
You can also do it by eye (9 pin mini's only)but dont bend the tubes pins too much they break very easily.
If the octal tubes pins are bent. Dont chance it, leave them, they are hollow.
PS If you can hear the retainersprings rattling in there your not playing the amp correctly...TURN IT UP!...

)