Historically the Catholic Church has had, or has been perceived to have, a rocky relationship with “freedom” in the sense that the term has come to be used in a political and cultural sense since the Enlightenment.
Freedom in the modern sense is often taken to mean, “I’m free to do whatever I want without anyone telling me what to do.” The Church, on the other hand, generally takes freedom to mean, “Freedom to do that which is good.” The Church sees sin as enslaving and as reducing one’s capacity to choose freely in the future, and as such even where acting contrary to the good is in no way forbidden, doing wrong is not seen by the Church as exercising “freedom”.
So the in the moral sense, the Church does not hold “freedom” in the sense of simply doing whatever you want to be a good. Rather, the Church holds doing the good to be the good, and freedom to be the means of achieving that.
I speak above in the moral sense. However, let us look now at the political question of freedom.