Can you take Pre-med classes at a CC instead of a 4 year uni and still get into a good Med School?

@ucbalumnus
@WayOutWestMom
Thanks, would you say that spending your first 2 years at another, less competitive 4 yr institution is better than going to a CC? Would that help my application? For example, if I went to USF(San Francisco) for two years then switched over to UCB