No, there are quite a few different ways you can live here permanently. Marriage is just one of those ways.
I definitely wouldn`t recommend trying to get married *just* to stay in Japan. While it certainly made things easy for me, I married for love not a visa.