There’s one thing you absolutely need to understand:
Algebra 2/ Trig is essential for EVERYTHING you do in math from now on.
Like, literally, everything
I’m in calculus right now and everything builds on algebra 2, much more than you may expect. If you do not understand Algebra 2, you are almost guaranteed to fail math analysis/precalculus and then you will not be able to understand calculus. It keeps building on itself. Algebra 2/Trig builds up to precalc and then calc and any knowledge gap from Algebra 2 can cost you in the future. Taking Algebra 2 online is the perfect way to have a weak foundation for those classes and your chances of understanding go down. I’ve taken 3 virtual courses, and trust me, the retention for online courses is MUCH lower in math than a classroom setting (hint: zoning out during a dry online math lecture with no accountability for it? You might think it won’t happen to you, but it happens to everyone). Again, as others have said before me, online is not necessarily bad, but it presents unique challenges, especially for math. See if there is any way you can retake the class next year. (Online algebra 2 will not provide an effective transition into calculus if that is the class you are planning on taking next!!!)
Good luck, and I really hope this works out for you.