I spent high school in the woods home schooled and only socialized at church. So did all my siblings and a number of people I met at college. We all turned out fine.
This is another factor increasing inequality, by the way - we were exceptionally privileged to be able to have work schedules able to handle this, and a nanny who could watch our kids while we worked. Most parents wouldn't be able to do that.
Most people that home school…not so much, in my experience.
Note that this is often relative. You may find the church to be full of people with bad values. Likewise, someone who is religious may not want their kids to socialize with kids that have parents that encourage things like transgenderism in pre-teen kids.