I would not recommend that, because newer graphics card need a matching processor to get the proper performance from the video card. With older systems like the R5 I would suggest upgrading the system completely.
I have the Alienware Aurora R5 that I bought back in 2016
"DS: My system is out of warranty and older but can I upgrade my graphics 
card?."