Yes, the online courses that you might take are just as valuable as courses that are taken in person.
The biggest thing to remember is that you must prepare to pass the test required of anyone who wants to become certified.