CCC course catalogs should say if the course is CC transferable.
When going CC->CCC, just make sure you don’t split up any math/science sequences. For example, if your CC has Chem A/B, and you take Chem A there, you might not get credit at the CCC or the UC. Its really weird (and frankly I don’t fully understand it) but it is something to be aware of if you don’t start at a CCC