Is “Pursued Shu troops at Mumen Trail, fell into ambush and was shot dead” true?

attested in history

Records of the Three Kingdoms, Wei Shu, Biography of Zhang He, records that Sima Yi ordered him to pursue the retreating Shu forces, and Zhang He was ambushed at Mumen Trail, struck by a stray arrow in his right knee, and died.

Zhang He

In official histories, Zhang He was one of Wei's Five Elite Generals, known for adapting to changing circumstances and excelling in camp formations, but in fiction he is often defeated by Zhuge Liang and Zhang Fei.

Other claims about Zhang He