Yes, it is recommended to replace the oil filter when changing the oil in your 2012 Ram 2500. This will help ensure that any contaminants or debris in the old filter do not contaminate the new oil.