This is a point that gets overlooked often in discussions of gender. Understanding the distinction is one of the keys to understanding that people don't fit into discrete boxes according to their biological sex.
This holds true for any character attribute. I don't think there's anything wrong with playing to gender expectations as long as we're also willing to go against what is expected as well. Where too much surprise may ring false, the same would hold true with too little variety. At that point, it's only about writing good, complete, and interesting characters. If your characters share too many similarities based on gender, race, culture, whatever...then your work probably won't be as interesting as it could be with distinct individuals playing those parts.
It's the attributes that fall outside expectations that often draw the strongest reader reaction.