That depends. Students who are most successful are self-motivated, have clear goals, have set aside appropriate time, and are Web-savvy. Many institutions have a self-assessment tool on their site such as this one to help you gauge your likeliness of success studying online.
Is online learning right for me?
Online Learning for Students and Parents