Let it go

Is it true that you can still love someone but not be in a relationship? I can't take it anymore, I feel like I'm hurting myself trying to be happy.