There are some that manage it better than others. Constraining sprawl is one requirement. But public transportation is another.
Silicon Valley has trapped itself at a density where it's high enough to produce traffic, pollution and all the downsides of an urban environment, but not high enough to merit lots of public transport.
As a result, I end up Ubering from Cupertino to Mountain View--and back--every day I'm in the Bay Area, along with thousands of other people with a virtually-identical commute.
But in my experience places like NYC (Manhattan in particular) have done a fairly successful job of allowing people to opt out from the traffic problem by using public transit, walking, or uber/taxi instead. A lot of other cities could play catch up there.
We overflow into Brooklyn, Queens and New Jersey quite easily. In any case, most of uptown is relatively low density. The density exists because of the demand in a few concentrated areas and because it's permitted.
Los Angeles is a case study in urban transportation failure. The sprawl encouraged by Silicon Valley's low-density preference is more of a contributor to the region's traffic and pollution problems.
> Or Cupertino can say "no" keep the atmosphere that has made it successful
To be clear, I'm not saying Cupertino should say "yes". Just that the natural consequence of "no" is higher housing prices and people being relocated as a function of income. (Also, the area becoming less attractive to startups vis-à-vis large companies.)