Virtual classes

I'm In highschool they offer virtual classes that I can do at home I was wondering if its possible for me to be out of school until spring when I would be able to start the classes or would I have to stay in school ?