Syncing Drum Machine to Ditto Looper

Hello. I own a TC Electronic Ditto Looper and an Alesis SR 16 Drum Machine. I would like to get them synched together but am not sure how to go about it. Would it work if I bought a Midi to 1/4 instrument cable and connected the drum machine to the looper? (essentially using the Midi Out on the drum machine to the input jack on the looper). Any suggestions are appreciated!