Certainly a good lesson. It is very useful to know what the problem is and how serious it is in order to find a solution.
A serious problem needs a serious solution, needs that is probably going to involve change and effort on your part, and maybe even doing things you don't want to do. But there is nothing about getting sober that is remotely as difficult or horrible as an alcoholic death.