I blocked him. Did I do right?

This guy was always trying to tear my relationship with my love. This guy was my love's friend. But now they became enemies after his friend expressed his feelings about me to my love. My love loves me so much and I love him more than that. My love knows this and gave his friend warnings not to talk with me. But his friend is still texting me and is not able to accept the fact that I'm in love with my love and always spying on my social media and trying to break me and my love by making my love feel insecure about himself. So I blocked him on my social medias. Did I do right thing?

I blocked him. Did I do right?
Post Opinion