Most synthesizers you can use as long as you have a pair of headphones or an amplifier to hear the sounds. If you want to do recording with it then yes, you need a MIDI cable to connect it to your computer with the appropriate recording software.
But if you're like me and you just play for fun...