Overall, online courses are recognized as a fully valid form of learning. However, there are certain courses that require face-to-face learning, such as courses in the health area. Also research your country's legislation regarding the course you want to study.