Does the ordering of heading tags matter?

On February 26, 2009, Google software engineer Matt Cutts collected questions on Google Moderator and answered many of them on video. Nik from London asked: I’m using a template website (I’m an amateur!). The h1 tag appears below the h2 tag in the code. Does the spider still know what’s going on?