Yes. In the upper-right corner of the menu, the game displays a random class along with your longest life as that class and the line "Why don't you give him a shot?" — except for the Pyro, where it reads "Why don't you give her a shot?"
There are also Easter eggs hinting that the Pyro is a woman, such as the yellow flower-patterned purse seen hanging over the Pyro's uniform in the lockers on certain maps.