An old and weary shibboleth.
Anybody can write in anybody's perspective--man in woman's, straight in gay's, black in Sioux Indian's, dog hater in chihuahua's--as long as the character is interesting and authentic. And no, you don't need to come from the character's gender/culture/creed/socipolitical status to write authenticly, although you might need to do research to get the details right.
Our fundamental, identical natures as a recently evolved species far, far outweigh any cultural & sociopolitical differences. That's the bedrock. Otherwise we can float off into the worst kind of solipsism.
If I sound dogmatic--by golly, I am. I grew up a white boy in a Asian country and I write a lot of intercultural fiction.