Did Michael Jackson write the songs because of problems in his life?

Some of them such as Stranger In Moscow and Scream were about problems he faced, but the majority of songs had nothing to do with his personal struggles.