It's affect. Your med school application may be affected by attending community college. Community college grades may have a negative effect on your med school application. You can look forward to caring about the difference when you get to afferent and efferent neurons in a few years.
You can do a year or two at a community college without necessarily doing yourself any harm. Might be great preparation for you. But you want to do your prerequisites, and lots of other hard classes, at a 4 yr school to demonstrate your academic prowess. If you do an interesting science-y major like bioengineering, neurobiology, microbiology or suchlike, you will have a hard time finishing in 4 years, if you start at a community college.
There are a bazillion other factors to consider, but if you have a choice, go with the 4yr where you'll be happiest.
Best of luck to you.