Short answer: yes.
Papal infallibility only applies to declarations regarding Church doctrine. An infallible statement is usually made in response to doctrinal questions or disagreements, and they are very rarely made.
The Sacrament of Reconciliation (Confession) is celebrated by any Catholic seeking forgiveness for mortal sins. The graces received through the Sacrament of Reconciliation are necessary to help us from committing those sins again. No human is “above” celebrating the Sacrament of Reconciliation because we all sin and fall short of the glory of God (Romans 3:23). It is a humbling experience to admit to another person (and to God) that you have messed up and need His grace and mercy to be reconciled with Christ and His Church.
Does the Pope go to Confession? was written by Kristan Siegel on Electing the Pope