Does getting C's in community college affect Grad School admission?

I’ve been dealing with a lot of personal and mental health issues and I’m at risk of getting C’s in physics, calc 3, and organic chemistry this semester. I don’t know how universities work but if I do happen to get C’s this semester at community college, will this affect my chances of getting into Grad School after completing my bachelor’s?

Worry about getting your 4 year degree! Your grades in your major classes will matter the most. They will
calculate both your major & overall GPA; depending on your subject you may have a subject-specific GRE exam (in addition to a regular GRE / GMAT, again depending on the course & university).

Many of the grad programs i have applied to ask for cumulative and major/last two years gpa, but most emphasize upper division and last two years gpa.