Community college

So long story short I failed 2 classes last semester and I plan on retaking them. But now, I want to change my major and I don’t think those failed classes apply to my new major? Would it still be a better idea to retake them? I plan on transferring on time and plan on taking winter/summer classes to help me get on track. I’m a freshman going into second semester this month