The Catechism in Questions & Answers

208. Was the Holy Spirit also given as a gift in the time of the Old Testament?

No. The Holy Spirit only filled human beings temporarily in the time of the Old Testament. It only became possible for human beings to receive the Holy Spirit as a sacramental gift after the sacrificial death of Jesus Christ.

The Holy Spirit as a sacramental gift: see Questions 428., 440., 523. et seq.