Arduino with midi breakout board

So basically, if I purchase a USB shield, fit that unit up to the arduino with the midi in/out/thru shield fitted on top of that, I should be able to program it to give me the din midi output that I require?