The answer is... it depends. If you buy RAM modules from the motherboard's QVL document, then there's a good chance that it'll work just fine. If you buy modules outside of the QVL document, it may work, but there's no guarantee it will.
The worst that'll happen is your computer won't boot. You'll just have to reset the UEFI settings if that happens if the board's firmware doesn't recover from it automagically.