It is alright if you do not wish to be near people including your family if you understand why that is. If you know who you are, why you are what you believe and you can tolerate them yet keep your distance.
If you do not have any of the above then you could be in a catagory that includes Autism. Therefore you need to seek help from professionals in the field so that you can function in this world on a daily basis. Because like it or not we are surrounded by people family and friends or enemies and we gotta live with that.