Yes and no. No and yes. Solitude is necessary to sort out the day's events and just think without distractions. Too much thinking can distract you from socializing with your family, friends, and peers. Everything in moderation. You have to have both to be a person who is not only useful to themselves, but to others and th community as well. Get out of yourself and be aware of others. It will be good for you.
The worst thing if you never go out or get sunlight and fresh air and go out you can get seriousness skin problems. You get skin cancer in high ultra violet raidiation and other radiations areas when you go out to much (closer to the equator) but if you are in areas in areas with less sun and heat and some types of radiation are good if you don't get enogh of it you get get skin problems so basically try to get foo radiation and avoid ultra violet radiation