Will retaking a class I failed raise my GPA?

Yes, the new grade will replace the F. It will still show on the transcript but will not factor into the calculations.