What do you mean by came from the society ? Do you mean it' reactional to the context ? These are the types of depressions where cognitive therapy can be efficient. You can learn to direct your own thoughts, or avoid self bashing thoughts, that will prevent you from falling back into depressions and take control of your own mental wellbeing and your life.
Yes I think it can be done. I haven't done it but if you ctrl-f CBT one user suggests they've had success replacing their negative self talk.