No, because it isn’t really a ‘but’. The teaching is crystal clear --suicide is gravely morally wrong. So it’s not a yes, but.
There is no way you see that suicide ever becomes anything more than gravely morally wrong. Just because the person committing suicide might not be fully ‘aware’ or might have something that ‘compels’ him does not make the action become ‘not wrong.’ It makes the person himself perhaps NOT FULLY RESPONSIBLE for the wrong, but the ‘wrong’ remains.
Same with abortion. It is never anything other than morally wrong, but a woman is practically ‘forced’ into abortion through threats, emotional blackmail, and outright lies about ‘the procedure’ is not the same as a woman who knows this is a child, has everything ‘material’ and psychologically ‘comfortable’ in her life, but who 'doesn’t want to be pregnant now because I want to look good in my bathing suit this summer at the club" and aborts for that reason.
The first woman and the second woman are both committing a great wrong. . . but the first woman may have less culpability than the second. The abortion is not ‘less wrong’ for her though. Equally wrong sin, but not equally culpable people.
So a moral or faith teaching can never turn from “Yes this is good” to "well, it’s sometimes good, sometimes bad’. It can never turn from "This is wrong’ to "this is right.’