Am i screwed?

So to cut to the chase I received a C in second semester Gen Chem. The worse part was that i was doing really well and i honestly understood everything, it was tough but not to where i should have received the grade that i did. The final for the class however was ridiculous and brought my for sure B to a C, I was confident in getting at least a B but the professor threw a huge BS curve-ball to our class. I am an Engineering major and I was planning on applying to the good UC’s should I even bother? I have a 2.8 GPA but that should go up once I retake a HIS class that didn’t get dropped properly. I also have Calc 2 & 3, Phys 1 & 2, Linear Algebra, Differential Eq. and C++ left to take and that will definitely increase my GPA. This C however really did get me down :confused: