You would only need MIDI In if you want Sonar or other software / hardware to control your piano.
It should work fine, provided you already have a MIDI interface on your computer to accept the external MIDI signal from the piano.
(I'm assuming the piano has a 5-pin MIDI DIN connection, not USB MIDI).