I don't think you should give up on love because you don't think you're good enough. There are plenty of other reasons to decide not to give your heart to someone but self worth is most definitely not one of them.
At the same time don't rush yourself though. Get in a relationship when you're ready, not when you're lonely. For example, I know I'm definitely not ready for a relationship right now. I'm too busy trying to focus on myself and beat my depression but eventually when I'm feeling better I'll start looking

Don't give up~