For some, I guess. You have to find the right medication that works for you (this process is Hell and can make things feel worse in the short term) and couple that with intensive therapy with the right people. Who you choose to work with for treatment is very important because there are a lot of horrible and incompetent people working in the mental health field.
The medication won't forcibly make you happy and neither will the therapy, but they're there to provide you with tools to help make living life easier. For some people, that's enough to keep them going. But the whole process is potentially long and strenuous.
You ultimately have to want to 'get better' or have some hope that you can 'get better.' Better in the sense that you might start thinking "all right, let's keep trying since I'm still here and sticking around isn't as bad as it used to be."
Personally, I don't have any hope in myself. I thought I could at least become someone who wants to get better but I can't. I know that my desire to be free from consciousness will always be wired in me, and that I'll never think that I truly want to "keep trying." Having to think/feel or experience anything, even moments of happiness, is insufferable so I'm not going to chase after "what ifs" and "things that are worth living for."
Maybe you have some desire to get better. Or at least some hope of becoming someone that wants to get better (even if it's difficult to envision a positive future). I can't say that medication/therapy will definitely help, especially since my limited experience with medication and therapy has only been bad, but if you're curious and want to try anything you can, it might be worth a shot. Just be aware of any risks and to not 'overshare' with the wrong people.
Whatever decision you make is respectable and yours to make.