Can a pope act/say something heretical

Ignore what I said, what I said can possibly be wrong regarding Vatican 1.

Here’s a quote from Pastor Aeternus, “…. the Roman Pontiff, when he speaks ex cathedra, that is, when in discharge of the office of pastor and teacher of all Christians, by virtue of his Apostolic authority, he defines a doctrine regarding faith or morals to be held by the Universal Church is, by the divine assistance promised to him in Blessed Peter, possessed of that infallibility with which the divine Redeemer willed that his Church should be endowed in defining doctrine regarding faith or morals; and that , therefore, such definitions of the Roman Pontiff are of themselves, and not from the consent of the Church, irreformable.”

/r/Catholicism Thread Parent