If the policy of your school is that the class needs to be failed in order for you to retake, then I doubt you will get an exception. Be aware that in most cases, even if you retake the class and the new grade is used to calculate GPA, the original grade will still appear on the transcript. But it all depends upon the HS.