Are hospitals needed for primary care?

Are hospitals needed for primary care?