No. Rashi was a tremendously great scholar and recipient of oral traditions from the schools of Germany, but he did not receive supernatural _ruach hakodesh_. The Ohr Hachaim (who lived a few centuries after Rashi) writes in his commentary to Genesis (6: 3) that after the destruction of the Temple prohecy ceased but Ruach Hakodesh continued. (I presume this refers to Chazal; the sages of the Talmud). Afterwards, however, there is no ruach hakodesh, and there is not even traces of "_reiach hakodesh_". "Afterwards" seems to refer to the post-Talmudic era. (References to "these days" to refer to the post-Talmudic era are common in rabbinic literature). > ומשחרב המעון נסתם חזון ונשארה בחינת רוח הקודש, וכשנסתתמו עיני ישראל אין אתנו משיג ריח הקודש ואין צריך לומר רוח הקודש