Well, for being out of shape, you can change that if you want to. I'm out of shape also, immensely so, and although a lot of people love themselves and see their beauty without needing to lose weight or look a certain way, I can't do that. Losing weight and working out will make me feel good about myself. If it's something you can change, and you want to change it (for yourself, not for others), then you can try.
As for being ugly...nah. I mean, beauty comes in all shapes, sizes, features, etc. It truly does. And I have to say, actually, I've always hated myself and always felt ugly. And then not long ago I wear a binder and I do this pathetically-drawn mascara facial hair, and I feel better about my appearance than I have in my entire life. Don't rule out self-esteem. If you have low self-esteem, it's not even that you're ugly, it's that you're unhappy with how you look now. If you can take more steps towards looking like how you are inside, you might be surprised by how much happier you are with your appearance.