failed emmisions test

I just failed my an emissions test with a fault code p0401: exhaust gas recirculation flow insufficient detected. Should I replace the EGR valve or try a different approach?