Transferring and repeating failed courses

Hi cc,

I’m hoping to transfer to CSUF at some point in 2022. I attended Mt. Sac Community College for 27 units but am now attending Fullerton Community College. At Mt. Sac, I have a failed class (Intro to Phil) I need to repeat to override the F into my GPA. Will it still override for transfer if I repeat the failed class at Fullerton College, or do I need to repeat the course at Mt. Sac?

Would hate to take a course only to realize it doesn’t count, lol