In most cases the barrels are connected to the circuit ground and it would be OK for them to touch. In some cases they are insulated and connecting the barrels electrically may degrade the sound or cause an electrical issue.
It should be easy to test with an ohmeter whether the two barrels are connected electrically.