Yes, Team Fortress Classic was rated M (for Mature) by the ESRB when it was first released alongside the original Half-Life on April 7, 1999. That rating reflected the game's combat content at the time of its official release.
It's an interesting bit of trivia, though, that the original Team Fortress mod, created by John Cook and Robin Walker before it became an official title, remained unrated, since it was a fan-made modification rather than a retail product.
So while the standalone release carried an M rating, its roots as an unofficial mod mean that early version was never formally rated at all.