As of 90 A.D., perhaps. Not clear before.
Best,
Josephus the Jewish historian affirmed in his arguments in Contra Apion 1:7-8 the number of books in the Hebrew canon was numbered at 22, which according to Jewish numbering is the same as the 39 in the Protestant Old Testament.
That was before 90AD my friend.
Jerome (325-420 A.D.) The Biblical scholar of his day, and the translator of the Catholic Bible, the Latin Vulgate, clearly agreed with the Hebrew canon, being limited 39 books of the present Old Testament to the exclusion of the additional books of the Apocrypha.