With enough mechanical know how I don't see why not. Likely have to make your own mount and possibly backplate though.
Just being able to slap it on there, not so much. I don't have any Ryzen coolers, otherwise I would sit down and experiment. Though I don't mind spending money on sheet metal and hardware as I get entertainment value from making things like that. For most people it is far cheaper to pick up an aftermarket cooler that fits.