Astronomers, astrophysicists, and physicists can study cosmology. Cosmology is not a degree, it's something you'd study with your degree in one of those subjects, and it would need to be a PhD to do research in the field. Astronomers work for colleges and universities (teaching and doing research), national labs and observatories, and NASA (doing research).