It depends. I'd elaborate on this point, but it would clock my powerlevel at above 8000.
It comes down to why you do it, who it will affect, what your motives are, and what influencing factors have lead you to this course of action.
If you kill yourself because the stock market crashes, you're a fucking retard. If you do it because you have cancer and the pain of going through chemo isn't worth suffering the five months the doctors have estimated you will live, that's a totally different scenario, and anyone could relate to not wanting to suffer in a masochistic manner.
Scout Schultz for example is a selfish suicide. That one was an attempt to make himself a martyr for the LGBT community, which his parents also assisted in doing for anti-cop rhetoric. Hitler is another selfish suicide, because he was a pussy and afraid of the Russians buttfucking him up the ass with their rifles.
Basically any time you kill yourself because life isn't going your way, it's selfish nature. There are very rare cases where suicide is humble, and those are few and far in between. Not even depressed people have a reason to kill themselves, if all they have is that they are sad with life.