Absolutely, and since Musk has an electric car company, something along those lines might be quite realistic. For electric cars used in that way, charging would not be an issue, as it would not be the burden of private car owners.
I just had another thought, although maybe a bit ridiculous: the main issue with "public cars" to me seems to me hygienic, how to keep them clean. What if in the future instead of owning whole cars, you only own a capsule with seats that can be picked up by transporters? I'd still prefer a world where parked car things are completely gone, but such capsules might still save a lot of space in the meantime.
I just had another thought, although maybe a bit ridiculous: the main issue with "public cars" to me seems to me hygienic, how to keep them clean. What if in the future instead of owning whole cars, you only own a capsule with seats that can be picked up by transporters? I'd still prefer a world where parked car things are completely gone, but such capsules might still save a lot of space in the meantime.