Can you be just friends with a girl you’re attracted to?

I have had many male friendships over the years and a lot of them have ended because at some point I realize they like me and when I don’t share the same feelings back, they leave. It really makes me feel like shit. Am I not worth being around if there’s no potential of a relationship or sex? That’s kinda how it makes me feel sometimes. In particular there was this guy that i was friends with that knew I wasn’t wanting to date anyone because I had just had a baby, and my baby’s father didn’t want to be apart of his life despite telling me otherwise many times. So I was pretty broken. I like to have a lot of friends and he and I just clicked, I wasn’t attracted to him but dating wasn’t my goal so I didn’t care about that. This man was there for me. He was my best friend at one point. I thought I had a friend for life honestly. One day he drunk texted me telling me he was in love with me and made me angry with the inappropriate texts that followed. He never spoke to me again. I was heartbroken. This man meant so much to me for a long time, and I wonder if he knows how much he hurt me too. This was 4 years ago and I’m still upset about it sometimes. I just want to be able to have a male friend without having to analyze my own behavior to make sure I’m not giving off vibes that I might be interested. What do you guys think? Could you stay friends with a cute girl? I want to add that I don’t assume they are going to end up liking me no matter how many times it happened because I have bad self esteem so “they might be into me” is the last thought in my mind.
Can you be just friends with a girl you’re attracted to?
Post Opinion