Yes exactly... so when Buddha said,
Now at that time a certain monk, tormented by dissatisfaction,
cut off his own male organ. They told this matter to the Lord. He
said: "This foolish man, monks, cut off one thing when another
should have been cut off. Monks, one should not cut off one's own
male organ. Whoever should cut it off, there is a grave
offence."
(Vinaya Piṭaka, Mahāvagga 110. Horner trans.)
"This foolish man, monks, cut off one thing when another should
have been cut off." - 'another' refers to the attachment,
defilements and fetters