Can I get rescinded from UCs for getting a D in my community college course?

You need to send all high school and college final transcripts: https://admission.universityofcalifornia.edu/how-to-apply/applying-as-a-transfer/after-you-apply/transcript-submissions.html

Historically, UC admission letters have had conditions that include no D or F grades in in-progress and planned courses reported on the application.

If you earn a grade lower than a C in an in-progress course, you must report it as described at https://admission.universityofcalifornia.edu/how-to-apply/applying-as-a-freshman/after-you-apply/ .