Yes.
I have had several periods of my life without friends.
It is not a nice feeling.
The problem with having no friends is that you can get kind of desperate after a while and overwhelm
any new friend by being to needy.
You should work on getting at least 3 people as a minimum who you hang out with.
Friend is a very ambigous term, one persons friend is another persons aquaintance.
If you have someone to talk to and do activities with you will feel better and you will attract more people.
The main point in having people who want to hang out with you is that you should be offering
value to them on some level. Sharing an interest is an offering of value for example.
When you have value to people they will seek you out.

Having and getting friends is a balancing game. You have to balance time, value, availability and many other factors.
Everyone have their own take on it, find one that works for you and become good at it.
If you can find some find of activity friend finder site on the net it can help you get started.
Meeting new people to do something you like could bring you over the top and help you get some aqaintances again.
Maybe even a friend or two. To have friends you need a larger pool of aqaintances.
Hope you find what you are looking for.