At first I thought you hit a "5" instead of "4" on keyboard. Now I'm not sure whether you're trolling or just not a very bright person.
DDR5 as a RAM memory does not even exist on consumer market as of yet. You probably mistook your GDDR memory for RAM or whatever.
tl;dr: yes, the RAM you mentioned will work with Ryzen 3000 and 5000 series.