UCSB Transfer 2019: Might receive a "D" in a Pre-Requisite Class before transferring.

My major is biopsychology and I have a 3.20 GPA. There is a possibility I might have received a “D” in one of my pre-requisite classes, which is Physics, and I’m afraid I may or may not get rescinded? By the looks of other threads, it seems that UCSB is pretty lenient as long as you communicate it with them or worse comes to worst, you’re able to write an appeal if you do get rescinded. Has anyone dealt with something like this or know what I can do for now until my grades are actually finalized? Am I able to retake the class at CC or at UCSB, will they allow that? Thanks, anything will help!