Notes on how to write

Should writers write from personal experience or attempt something completely foreign to their understanding? How can they write anything beyond what they know and if they can’t, can we say they aren’t writers but mere memoirists?