Yes, I got a degree through one; make sure it is accredited by someone most jobs in your area will accept; a lot of the online and TV-advertised ones are just in it for the money and you cannot get jobs (look for your regular state university and see who accredits it and then look for that or "adjoining" accreditation in an online school from where it is "based"):
U.S. Department of Education Database of Accredited Postsecondary Institutions and Programs
For example, I went to the University of Maryland University College, part of the State of Maryland's system and proud of its accreditation (instead of hiding it; if you have trouble finding how a school is accredited or if you don't understand/squishy words, run):
Accreditation - UMUC