I currently run a 8700k with a pair of 16g Corsair rgb pro 3200mhz ddr4 ram. Can I use this set of ram on a amd 5900x without any compromise?
Yes. In theory you can check the new motherboards compatibility list (QVL) but even if the RAM isn’t on that list it’s likely they just haven’t tested it and it will work.
I have a set of Corsair Vengeance Pro 2x16gb 3200mhz CL16 with a 3700x. It easily overclocked to 3600mhz C16. It would run at 3733mhz CL16 but required more voltage and gave little performance boost so I run 3600mhz.