No, this is false. Actually the opposite is true: it will likely decrease your self-esteem as it will only remind you of the times when you failed and when you did not manage to achieve your goal. If you think about the times when you failed, your self-esteem will likely decrease.