Is “Abolished the Han dynasty and established Wei by receiving the abdication” true?

attested in history

The 'Records of the Three Kingdoms' records that in 220 AD, Cao Pi accepted the abdication of Emperor Xian of Han, changed the reign title to Huangchu, and established the Wei regime.

Cao Pi

In official history, he is Emperor Wen of Wei, a literary figure and statesman; in fiction, he is portrayed as a narrow-minded villain who oppresses his own brother.

Other claims about Cao Pi