Grab,
Burns fequently wrote songs to tunes he already knew, from political campaign ballads to love songs. Indeed, many of the items in the Scots Musical Museum were collected as tunes without words, and Burns added the lyrics. So yes, he was a songwriter as well as a poet.