Is the Pope always right?
The Pope is not infallible in everything he says. He is infallible when, as supreme pastor and teacher of all the faithful, he proclaims by a definitive act a doctrine of faith or morals (Catechism 891). His other teaching on faith and morals is to be received with religious assent, which, though distinct from the assent of faith, is nonetheless an extension of it (Catechism 892).
What the Church says
Catechism of the Catholic Church, paragraph 891
“‘The Roman Pontiff, head of the college of bishops, enjoys this infallibility in virtue of his office, when, as supreme pastor and teacher of all the faithful - who confirms his brethren in the faith he proclaims by a definitive act a doctrine pertaining to faith or morals.... The infallibility promised to the Church is also present in the body of bishops when, together with Peter’s successor, they exercise the supreme Magisterium,’ above all in an Ecumenical Council.”
Catechism of the Catholic Church, paragraph 892
“Divine assistance is also given to the successors of the apostles, teaching in communion with the successor of Peter, and, in a particular way, to the bishop of Rome, pastor of the whole Church, when, without arriving at an infallible definition and without pronouncing in a ‘definitive manner,’ they propose in the exercise of the ordinary Magisterium a teaching that leads to better understanding of Revelation in matters of faith and morals.”
Catechism of the Catholic Church, paragraph 892
“To this ordinary teaching the faithful ‘are to adhere to it with religious assent’ which, though distinct from the assent of faith, is nonetheless an extension of it.”
In plain words
Paragraph 891 says the Roman Pontiff enjoys infallibility by virtue of his office when, as supreme pastor and teacher of all the faithful, he proclaims by a definitive act a doctrine pertaining to faith or morals.
Paragraph 892 says that when the Pope or the bishops propose a teaching without arriving at an infallible definition, the faithful are to adhere to it with religious assent.
What to do
If you have a question about what the Church has actually taught, ask your parish priest or use our Ask feature.
What the sources do not settle
Whether a particular statement counts as a definitive act is a matter for theologians. This page only gives the general rule. Ask your parish priest.