Sin lies only in hurting other people unnecessarily. All other "sins" are invented nonsense. (Hurting yourself is not sinful - just stupid).Robert A. Heinlein, Time Enough for Love, 1973.
I grew up a Heinlein fan and still revere him as one of the SF greats.
However, the above comment is not accurate. Anything that permits the taking of life is a threat when placed in the hands of politicians who attempt to extract "laws" from such behavior.
Also, it would have hurt others if any of the great inventors had offed themselves before making their contribution(s).
It is dangerous to play around the edges of the sanctity of life.