You can check directly with Asrock here:
https://www.asrock.com/mb...
It's funny that I couldn't find either RAM in the list. However, the specification states that DDR4 3200 (even with OC) is supported with a Ryzen CPU.
So back to your question, YES you can certainly use both RAM, but the question is whether you can get the full potential of your CPU (e.g. if you want to buy a Ryzen 5 3600 (frequency 3.60 GHz)). Since I couldn't find the max frequency anywhere and it may only run at 3200.