Can I transfer to a Californian community college THEN transfer to UCBerkeley?

Are you a CA resident? If not going to a CCC will not get you instate tuition.