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

Yes, it does. Adcomms–rightly or wrongly–view CC classes as less competitive than classes offered at a 4 year college. They want grades from a 4 year institution if at all possible so they can see how you compare with applicants who attended 4 years colleges. Apples-to-apples.

Possible exception: if you are a near 4.0 GPA student who has already completed a bachelor’s degree, then some schools–specifically osteopathic schools–are more forgiving in their attitudes toward CC coursework. Particularly if your CC grades are reinforced by a strong MCAT score.