Loving yourself certainly makes it easier to love someone else. When you accept and love yourself, you don’t need someone else’s approval or love, and you are likely to believe that you will find someone who you will love, and who will love you.
If you love yourself, you love others. If you hate yourself, you hate others. In relationships with others, it is only you, mirrored. You can’t give what you don’t have.