No. Your motherboard will need to support the type of RAM you intend to use. Although DDR4 and DDR5 modules both have 288 pins, their different layouts mean that they cannot be installed in the same DIMM slots.