Some medical schools will not accept credits for pre-requisites done at community college. Or only will accept a limited number of credits (typically 8 credits).
And there is a lingering preconception among adcomms that CC coursework is less rigorous than coursework completed at a 4 year college. If you do attend a CC, postpone taking your pre-reqs classes until after you transfer to your 4 year college. Or plan to take upper level science coursework there to show any good CC grades aren’t a fluke.