absolutely, if the ram is not compatible or the a compatibility issue on the ram and mobo, the system will be unstable. use rams listed in the mobo support list QVL.
is this problem acurring since you built your pc? if not,
maybe a heat problem or a failing ram
a weaking psu too will cause a pc to crash