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

Somebody who truly wants med school would be foolish to go CC to UCB rather than 4 years at a school like USF.