The Gender Gap

Is it over-ambitious (or to presumptuous) for a man to write about a female character or a woman to write about a male protagonist?  Maybe subconsciously I’ve thought so myself, as I have sometimes found myself praising people in my writing class for pulling it...