I have some questions

I got a D in one of my classes last year, and if i cannot retake the class, it’s gonna be stuck with me on my transcript. I cannot get into any of the UC schools with a D.

What if I go to one of the universities that accept me and transfer to UC? Would they look at my high school grade when I transfer? At what year can I transfer? What are the process?