Will thermostat have P0402 code?

No,Its has to do with the EGR valve