Usually depends on the Highschool but i’m sure they’d make u retake it because they’d like u to have enough credits in all the subjects. You can still graduate just do it during summer school or if your school offers a credit recovery opportunity take that. You won’t be affected much as long as you stay on top of it before your senior year (if you are a senior this year you’ll still graduate just later than others if u don’t make it up during the year)