When the canon of scripture was composed it was carefully studied by many scholars, both Jewish and Christian. The choice of books was not random. The way the books were chosen was based on reason.
The Church chose those writings that reflected her reality, her life, her faith. Because the Church was sure of her reality and her faith. Why was she so certain, because she had inherited this from the Apostles.
Only those writings that were consistent with the faith and tradition that the Church had inherited from the Apostles were chosen for the Canon of Scripture.
At the same time that the Church was composing the NT, the Rabbinical School was organizing the OT writings. When the two sets of writings were carefully examined by Catholic scholars, they found that they reflected what the Church is.
In fact, we do not accept the canon of scripture on pure faith. It is the product of scholarship that applied reason, historical consciousness, anthropology, literary criticism, dogmatic theology, linguistics, and catechesis. It was a very long process that took more than two centuries.
No, Catholics do not believe in the canon of scripture by faith, but by reason. Reason tells us that these writings reflect our faith; therefore, they must be legitimate.
Keep in mind, the Church came first, then the Bible. Even the OT was not codified until the first century. It was the Rabbis of the first century who organized the OT. Prior to that, these writings were loose books. The only set of books that had been organize was the Torah (Pentateuch).
I hope this is helpful.
Fraternally,
JR