Luckily when my son started UCD, they did allow AP credit for some GE courses and AP credit could be used towards getting a better registration priority. As noted by @lkg4answers noted above, that is no longer possible at several of the UC’s.
Again, no harm in applying as long as you are aware that the UC’s may be unaffordable. If California is your ultimate destination, I have listed several private colleges that would love an outstanding applicant like you to attend. USC is a great option if you are able to get 1/2 tuition with their Presidential scholarship along with some need-based FA.
Link to USC’s scholarships: https://ahf.usc.edu/merit-scholars/merit-scholarships/