Yes, there are some places where you can "buy" a diploma. These shady places are called degree mills and are usually characterized by "too good to be true" claims such as getting tons of credits for "life experience," offering a full degree within a year or even six months, and having fake accreditation agencies credit them with accreditation.
However, there are a ton of legitimate online colleges which are fully accredited, ensuring the quality of their education. This is a big, booming industry and more and more people are turning to online education. Even schools such as USC have fully online degree programs. It's definitely not for everyone. Just
do your research on accreditation for the particular school you are interested in - there are a lot of scams out there.
Avoid Degree Mills:
DegreeGo | Educational Resources | Recognize and Avoid Degree Mills