I has a HS friend who was madly in love with some guy and it messed up her life real bad pretending she can just be his friend.
She was like some vampire thrall, it was heartbreaking to watch. Pretty sure she's still suffering from it. I wouldn't recommend deluding yourself that you can genuinely be friends with someone you're romantically attracted to. It is neither in your nor their best interest.