I would have to see some photos of the bike to be sure, but yes a medium chainstay could be used to turn it into a medium - that is the only difference between the "sizes" of the bikes.
The challenge is the myraid of interfaces between the fork/chainstay/DR hanger. there are specific...