Do you go to college and take a class solely to learn the material in that class? If yes, then an online class may well be a good substitute.
I personally do not think that the true value of college classes, at least in some disciplines, was the sheer rote learning. The actual experience of sitting in class, taking notes, and generally "being a college kid in class with other college kids" was far more valuable to one's development and growth.