Is it legal to live in a car on city property?

Is it legal to live in a car on city property?