Is “Surrendered to avoid bloodshed” true?

attested in history

According to Records of the Three Kingdoms, Book of Shu, Biography of Liu Zhang, when Chengdu was besieged, Liu Zhang said, 'My father and I have governed this province for twenty years without bestowing kindness upon the people,' and then surrendered.

Liu Zhang

In official history, he was the governor of Yizhou, known for his mild temperament and policy of preserving the region and pacifying the people.

Other claims about Liu Zhang