Every single dress code I've been under has included hair.
Edit: I should add, some have been more restrictive than others. Back in high school, it was pretty restrictive. No unnatural dyes, stuff like that. I've also been under ones that essentially boil down to "just don't look like a complete mess man".