Having a good sense of self is the key to leading a happy and successful life. Being proud of your own capability and expertise helps you to navigate through the life confidently and turn every situation in your favor to keep on making progress even if the going gets tough. However, having a sense of pride is good for your progress in life, but considering only yourself best make you egoist and halt your progress.
There is a very thin line between pride and ego, while pride enables you to keep moving on with the flow of life, but ego creates hurdles in your path to success and leads to your downfall. Ego cannot let you rest because it needs constant feeding to make a person think themselves better than others.