Completing an AA/AS degree is not necessary to transfer to a UC or CSU, but completing an AA-T/AS-T (associates degree for transfer) can be helpful in some contexts if you transfer to a CSU: https://www2.calstate.edu/apply/transfer/Pages/ccc-associate-degree-for-transfer.aspx