Well, they are separate cities, since they have geographical boundaries and distinct city governments...
But yes, if the San Francisco Bay Area were merged into a single megacity with a unified, powerful municipal government, some of its persistent and increasingly painful issues (imbalance between commercial and residential real estate development, broken public transit system, etc.) might have a better chance of being solved.