1998 F-150

My Ford truck recently overheated. That was fixed by replacing the water pump. Since then the OBD scan indicates the EGR flow is insufficient. It seems to run rough. Is this a related issue with overheating? Would replacing the EGR be indicated?