How to get rid of the darkness in our self ?

Is exposing ourselves to the temptation the best way to combat our darkness? By resisting it ?