Depends—many community colleges and regular universities offer on-line options, but often they cost as much or more per credit hour than in-state tuition for brick & mortar classrooms.
Our eldest had been attending a number of online college classes in order to earn his prereq. requirements for his major. He has also attended several on campus courses.
The online classes are ideal for a number of reasons. The students do not have to deal with activist hostile profs. face to face.
For example, a number of our friends children attend a CC. They have been insulted and berated by their profs. in front of the class simply because they are Christians.