Should I retake a course?

I just failed an exam/final for more Stats course and I’m wondering if I should retake it for a higher grade? Or just focus on getting good grades in summer courses to raise my gpa?