Yes, you can connect the piano or keyboard to the computer using a USB A-Male cable, which you can purchase here. This allows the piano or keyboard to function as a MIDI keyboard.