If you ask this questions, then I think the answer for long total personal social isolation (I mean no personal relationships) - then I suppose the answer is a clear no.
You asking this questions tells me, that you have personally experienced that you are not happy without friends and family. You understand and feel the concept of what lonelyness is.
Only if you would have never felt unhappy when you were lonely, if you were someone who did not feel that emotion in such a situation, then you would be someone who did not feel and could also not understand the concept of loneliness. And as you can't miss something you do not experience you would be able to be happy. Yes, you could be unhappy about not being able to understand what if feel that concept yourself - but that's not relevant here.
You asking this questions, makes me think that you are either in such a situation right now or fear of getting into such a situation. And for some reason you think that it might be easier to accept it and now you hope for someone telling you: yes, you can stay in isolation, accept the situation and this are the possible ways to forget about the problem.
Whatever difficulties you have, which force you to consider being without friends: this is terrible and if I could I would hug and hold you now. Please, please, please don't give up hope - there are always good people out there, who you can connect with and some who will open there arms and say "I consider you a very important person in my life - you are a friend to me".
I suppose, if you feel unhappy because of loneliness, you could learn to accept that unhappiness. And concentrate on something else. Maybe, in some difficult situations you might not have another option than to break all bridges to friends and / or family. Then for a limited time - yes, you might be able to push the unhappiness out of your view and somehow live with it and still enjoy day to day live.
But I feel especially in the long run it would always be some kind of denial of both basic human needs and personal emotions. It would be some effort to supress that unhappiness and ignore it. In the long run denial and supression of your personal emotions will cost you your health (my personal view). Especially when we talk about this very, very strong need of human beings to "connect" to someone, to have someone who echoes our inner world. We are social beings - apes live in groups and have intensive social contact, our ancestors lived in tribes. The social construct of the "family" and of "friends" exists in any modern culture on earth. Ignoring this basic need and trying to suppress it might work, but will require enormous energy and will probably leave you with psychological issues and in some cases also some physiological problems.
In some special circumstances, others rules might apply: I think of monks, ascets, etc. There are cases where people actively seek isolation to achieve special goals or to fulfil some rules they have accepted. In such circumstances I absolutely have no idea.
So in the end please try to talk about this with someone - here or offline. The benefits of having or finding friends (and maybe also (re-)connecting to some family members) outweigh the cost of any obstacles you have to overcome on the way to find friends (again).