Does Annointing of the Sick substitute for confession?

When one receives the Anointing of the Sick prior to major surgery, does that also fulfill the need of confession? Does confession need to be made separately? If it does, can one confess to the priest in the hospital at the time of the anointing?
Thank you!

Confession, if the person is able, should be part of the sacrament of anointing of the sick. The individual receiving the anointing of the sick should confess at the beginning of the ritual.

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit