For some value of 'thinking', it can, though I suspect that most people can't easily do the thing I have in mind.
During my last round of depression, about two and a half years ago, I had a brief period of suicidal ideation - the first time I'd experienced such a thing. I recognized it for what it was, assumed it would be temporary, and basically responded with variations on 'so what?' from there: Yes, I want to walk in front of this bus. So what? That's not what I'm going to do, so it doesn't matter that that's the case. (This is very similar to how "even if killing babies is the right thing to do, it's still the wrong thing to do".)
I suspect that fighting with the part of my brain that was generating those thoughts - trying to get it to stop doing so - would have been counterproductive. Instead, I took it as a valuable communication that things really had reached emergency status, got myself out of the situation that was causing the problem (yes, I was lucky to be in a situation where that was a relatively easily implemented option), and was fine.
The elephant-and-rider metaphor is relevant here. Just because the elephant is panicking and trying to roll over or run away doesn't mean that the best answer is to beat it.
I was saddened to learn of the recent death by suicide of Chris Capel, known here as pdf23ds. I didn't know him personally, but I was an occasional reader of his blog. In retrospect, I regret not having ever gotten into contact with him. Obviously, I don't know that I could have prevented his death, but, as one with mental-health issues myself, at least I could have made a friend, and been one to him. Now I feel a sense of disappointment that I'll never get that chance.
Having said that, I must say that I take his arguments here very seriously. I do not consider it to be automatic that every suicide is the "wrong" decision. We can all imagine circumstances under which we would prefer to die than live; and given this, we should also be able to imagine that these kinds of circumstances may vary for different people. And if one is already accepting of euthanasia for incurable physical suffering, it should not be that much of a leap to accept it for incurable psychological suffering as well.
Of course, as Chris acknowledges, this doesn't imply that everyone who is contemplating suicide is actually being rational. People may for instance be severely mistaken about their prospects for improvement, especially while in the midst of acute crisis.(Conceivably, that could even have been his own situation.) Nonetheless, I think many of the usual arguments that people use to show that suicide is "wrong" are bad arguments. For example, consider what is probably the most common argument: that committing suicide will inflict pain upon friends and family. It frankly strikes me as absurd (and grotesquely unempathetic) to suppose that someone for whom life is so painful that they would rather die somehow has an obligation to continue enduring it just in order to spare other people the emotion of grief (which they are inevitably going to have to confront at some point anyway, at least until we conquer all death).
Ironically, society's demonization of suicide and suicidal people has negative consequences even from the standpoint of preventing suicide itself, as Chris points out:
It seems to me very possible that our society's fervor to prevent suicide may result in denying severely depressed people the compassion they need. This could theoretically be worth it if it prevented enough suicides that turned out to be worth preventing, but cases like Chris's raise doubt about this, in my mind. (From both angles: if Chris's decision was the right one for him, then the system is saving people it shouldn't be saving; if on the other hand it was the wrong decision, then we clearly see how the system failed him.)
Although I'm inclined to be sympathetic to Chris's view -- perhaps because I haven't always been maximally enthusiastic about my own existence myself -- there are some arguments that do worry me. Such as: if you think of future versions of yourself as separate agents, then suicide is a form of homicide. However, usually suicide is carried out on the belief that the future selves would approve of their nonexistence; and all of our decisions have consequences (often irreversible) for our future selves, so this is a general ethical problem that transcends the specific issue of suicide.
This post is a place to rationally discuss the ethics and rationality of suicide, as well as our attitudes (on an individual level, and as reflected in our institutions) toward suicidal people and, more generally, those suffering from psychological conditions such as depression.
I'm sad that Chris won't be able to participate.