Yes.
Modern CPUs have a universal physical ram interface, so the exact properties of the computer memory module don’t matter.
As long as a specific type of module is not incompatible with a CPU’s physical interface then it will work just as well at running programs and storing data. Every time compatible hardware changes, most manufacturers offer equivalent modules which function identically to their predecessor generations from an end-user point of view. Modern PC RAM modules are backward compatible with their predecessors up to 20 or more years ago. In other words, many people will still find that the latest generation meets their needs even on an infrequently used machine that they want to keep around for legacy purposes only.