Yes. Advanced degrees completed online have just the same value as if you were to attend class in person. Just look for one that's verified by one of the many accrediting agencies out there and backed up by U.S. News & World Report's highest level higher education rankings.