Yes, it will throw a code. The computer is smart enough to detect anomalies when it comes to the work of the EGR valve, even though this valve is not directly connected to the computer itself. But based on the input from other sensors the computer knows that this EGR valve malfunctions.