Some insightful posts above. Another possible thought for consideration.
We distinguish between divine law and merely ecclesiastical law of course. Not all the laws of the Church are contained in the codes of the Latin and the Eastern Churches. There’s liturgical law, the particular laws of dioceses, etc., the proper laws of institutes of consecrated life.
But I think it’s helpful to remember the context in which we do understand the code, and it kind of explains the role of laws in the Church which are only disciplinary.
(Of course, we can’t hedge on divine law. As revealed truth, we have to embrace it. That’s why we have the sacramental economy and Mass, a hierachy, etc.)
This was explained in the apostolic constitution, Sacrae Disciplinae Leges (January 25, 1983), by Pope John Paul II:
“the Code is in no way intended as a substitute for faith, grace and the charisms in the life of the Church and of the faithful. On the contrary, its purpose is rather to create such an order in the ecclesial society that, while assigning the primacy to faith, grace and the charisms, it at the same time renders easier their organic development in the life both of the ecclesial society and of the individual persons who belong to it. The Code, as the principal legislative document of the Church, founded on the juridical - legislative heritage of Revelation and Tradition, is to be regarded as an indispensable instrument to ensure order both in individual and social life, and also in the Church’s activity itself.”
As canon 1752 says in part, “the salvation of souls . . .must always be the supreme law of the Church.”