Depends how the jack is wired. If the sounds are triggered by closing a switch then a normally-open footswitch should do the job.
Some synths have normally-closed footswitches, some have normally-open. Most aftermarket switches have a little slide switch to choose which way round they work - ie. break for sustain, or close for sustain.