It should work fine. It is socket AM4 compatible and provides plenty of cooling performance to handle a 3700x.
Just note RGB uses the Corsair iCue system. As far as I can tell it is not compatible with the motherboards built in RGB. You'll be controlling it with Corsairs software not MSI Mystic. Only an issue if you want all RGB in sync and you are using non-Corsair RGB as well.