Not meeting a-g requirements after acceptance

Okay so I got my acceptance letter from Cal state San Bernardino. I am retaking Algebra 2 as a senior to try and pass it this time. I currently have a D. I will be able to get it up to C but it will probably go back down after the final. If I end the year with a C-, will I get my acceptance taken away? I am so stressed and losing sleep over this