How to map the 4 knobs to MIDI CC

I want to map the 4 knobs to MIDI CC and send the data out through the MIDI interface. Do I need to do it in PD?