Is “Advising against welcoming Liu Bei and being forced to surrender to Wei” true?

attested in history

The Records of the Three Kingdoms, Book of Shu, Biography of Huang Quan records Huang Quan's advice to Liu Zhang, his persuasion of Liu Bei, and his cutting off retreat and surrendering to Wei after the Yiling defeat. Liu Bei said, 'I have failed Huang Quan.' Cao Pi valued Huang Quan. The novel completely follows the historical facts.

Huang Quan

In official history, Huang Quan advised against welcoming Liu Bei, and after the defeat at Yiling, he cut off his retreat and surrendered to Wei. Liu Bei lamented, 'I have failed Huang Quan.' The novel fully aligns with official history.