Should i retake a class not part of my major?

<p>Hi! So its my freshman year in a CAlifornia Community College and my first semester was not very good( got distracted) i got a B in freshman english(transferabble class part of my major-4units) but a bad grade in my math class which is pre cal, a D(5 unit class not part of my major). Technically i passed the class but my gpa became very low due to it. I want to transfer to UCI/UCD or maybe UCLA and my major is computer science. I can retake the class and the new grade will be added to my transcript and GPA(old grade wont count on gpa). So i wanted advice if i shoult retake that class. Is it worth it? I know if the D grade remains my gpa will take a lot of work to boost ALOT! But im not sure if i should take it as its not part of my major(it does transfer to UCs).
What will you guys suggest? Thanks in advance.</p>

<p>Yes, you’ll need to retake it to get in to Calc classes which usually requires a C or better. CS is highly competitive.</p>