Graduate with a D-?

I have 1 elective course left for my degree, and possibly will receive a D- in an elective this quarter. I can either take the D- and a hit to my GPA and graduate in two weeks, which is fine otherwise or I can S/NC it and take a single course next quarter which I don’t want to do unless I have to.

Can a D- grade count towards your degree? It’s not a major req or upper div. I already finished all my lower divs, upper divs, and general ed. It’s literally just to fill in extra 4 credits to hit 180.