Generally speaking, no, you cannot do a straight trade from DDR3 to DDR4 RAM. They’re made with a different number of pins and are slightly different sizes. You won't even be able to fit a DDR4 module form factor into a DDR3 expansion slot.