This is wise advice. You can't have a relationship if you haven't already healed your wounds, or worked on your self-esteem.
When you do, you see a big difference. You stop begging, you respect yourself, you love yourself, and you don't accept things by halves.