Generally yes, especially for general education requirements or if you started your academic career at a community college before transferring. Where you'll get more scrutiny is taking your core science prerequisites at a community college while simultaneously enrolled at a four-year institution, since that pattern can read as avoiding rigor.
If community college credit is part of your path, follow it up with upper-division science coursework at a four-year school to demonstrate you can handle that level of difficulty. A handful of schools state an explicit preference around this in their materials, so it's worth checking the MSAR for any school you're seriously considering.