Of course, since the original poster didn't give the exact code, I can only assume it was a 332 code.
In any event, the EGR valve is probably NOT the reason for the code. The 332 code shuld be treated the same as a P0401 code in 96-on vehicles.
If he replaces the EGR valve and the code and CEL remains, he has no one but himself to be pissed at for not researching the code on this forum.
Steve