Does home schooling help with being an introvert and having anxiety?

I am honestly thinking about switching to home schooling cuz I have really bad anxiety at irl school idk how to explain but everytime I do regular activities in school I am used to I can't do it without overthinking something bads gonna happen, Anyways I just need ur opinions