Most just want all your pre-reqs done upon entering medical school. I think there are a few that want them done prior to application but for the most part don't sweat it.
I would say that there are some faults with this and could be a red flag for adcoms and will bar you from applying to Yale. So it's at your own discretion.
Take them at a local state school that isn't a community college, if possible. That way you can save money and it won't be a major red flag.
By the way Penn State requires completion of pre-reqs by January of the application year (in other words Fall of your senior year if you apply as an entering senior). Cornell has the same requirement I believe.
Temple and Wake Forest need completion of pre-reqs by application time. There are others out there with similar requirements.
In the eye's of Adcoms: CC -> Uni =/= Uni -> CC | Even taking a pre-requisite at a different university could be a red flag as people would believe they went there to get an easy A.