As a 40 yr old who is not married, I can assure you, if you can make your own money, take care of yourself, and have friends, you will be 100% OK on your own.
Do I get lonely? Of course. But being unhappy in a relationship (that you can't easily escape) is so, so much worse.