From the CCC this may help in answering the question:
1861 Mortal sin is a radical possibility of human freedom, as is love itself. It results in the loss of charity and the privation of sanctifying grace, that is, of the state of grace. If it is not redeemed by repentance and God’s forgiveness, it causes exclusion from Christ’s kingdom and the eternal death of hell, for our freedom has the power to make choices for ever, with no turning back. However, although we can judge that an act is in itself a grave offense, we must entrust judgment of persons to the justice and mercy of God.
**1440 **Sin is before all else an offense against God, a rupture of communion with him. At the same time it damages communion with the Church. For this reason conversion entails both God’s forgiveness and reconciliation with the Church, which are expressed and accomplished liturgically by the sacrament of Penance and Reconciliation
**1446 **Christ instituted the sacrament of Penance for all sinful members of his Church: above all for those who, since Baptism, have fallen into grave sin, and have thus lost their baptismal grace and wounded ecclesial communion. It is to them that the sacrament of Penance offers a new possibility to convert and to recover the grace of justification. The Fathers of the Church present this sacrament as "the second plank [of salvation] after the shipwreck which is the loss of grace
**1455 **The confession (or disclosure) of sins, even from a simply human point of view, frees us and facilitates our reconciliation with others. Through such an admission man looks squarely at the sins he is guilty of, takes responsibility for them, **and thereby opens himself again to God and to the communion of the Church in order to make a new future possible.