No - you can't just use any footswitch with any amplifier. Some footswitches are really simple - a make or break connection, but others do different things - sometimes voltage drops, sometimes active circuitry, sometimes polarity changes.
Are footswitches interchangeable?
Amp footswitches are not interchangeable. There are many footswitches types, with each one doing its own thing. Therefore, carelessly connecting a footswitch to your amp can possibly damage your amp.
Do I need a footswitch for my amp?
Amplifier Footswitches
If you've bought an amplifier with switchable channels, usually a distortion/gain and a clean channel you'll need a footswitch to activate or 'switch' between each one. You'll also need one if your amplifier comes preloaded with switchable effects like reverb and tremolo.
What is an amp footswitch for?
“Footswitch” refers to any device that sits on the floor and allows you to change a sound, select a channel, or turn on and off specific effects (such as reverb or tremolo) with your foot.