If you think it's doing you more bad than good, sure, you can change career if you want.

However, your job might not be the only cause, and in that case changing career would help, but the depression would still stay.
Before you do anything, though, I think it's important that you think about what career path to pursue.
Have you considered seeing a therapist?