Can a Mega send MIDI commands through its USB port?

Converting SysEx MIDI messages to USB MIDI messages is not as straightforward, so you might run into some problems if the firmware is really, really bad (but I doubt that's the case).
As Mike said, if it can handle Note On/Off events, it should handle Pitch Bend events as well.