Weaning without getting enough solid food

Sophie

Probably a stupid question.. But could a baby start to wean themselves from breastfeeding without getting enough solid food?

Would they starve themselves?