Agreed to what most people said above - depends on focus, time management, and self-discipline.
Also, different schools have different types of programs. Often times, the online version of the class is more expensive even though you often get less interactions with the instructor or students. At most accredited school,s you'll have a deadline of when assignments are due, you'll have to take tests, and do the majority of your homework online. Many of these programs also depend on your learning styles.
For me, it was great when I was on tour over summer because I didn't need to be in class - but every few days, I was rushing to a hotel or cafe to connect online. One thing also: I can't stand reading textbooks on the computer screen. I usually print the 300-400 pages out because its easier to read, take notes, highlight, etc.
If you're in it to get the class done, it can be convenient because you can work ahead. If you really want to get something from the class because its something you enjoy, I'd say go for the standard classroom.