Depends on what UCB reports on the transcript after receiving AP credit. While general UC policy is not to give credit for both AP and a college course covering similar material (e.g. AP calculus AB and Math 1A or 16A), the OP needs to find out if the AP credit disappears from the UCB transcript or if it remains listed but with zero credit after taking Math 1A.
Note that page 32 of https://aamc-orange.global.ssl.fastly.net/production/media/filer_public/33/f0/33f0bd3f-9721-43cb-82a2-99332bbda78e/2018_amcas_applicant_guide_web-tags.pdf says that “If you take a college-level course for which you already have been granted AP credit by the same institution, AMCAS considers the course a Repeat.”