Should you enrol in a Chinese course or are you better off learning on your own?

Some people think enrolling in a course is the best way to learn Chinese, but others say that courses are useless, and swear by the effectiveness of self-studying. So should you enrol in a Chinese course or are you better off learning on your own?