The UCs do prioritize the CCCs in transfer admissions, and there are certain CCCs that are known as “feeders” of transfer students to certain UC campuses. Berkeley CC, for example, is a prominent feeder to UC Berkeley; they had 137 UCB transfer admits last year, out of 427 applications, for an acceptance rate of 32.1%. That’s obviously not a guarantee, but it is clearly a better shot than applying to UCB as a freshman (the UCB freshman acceptance rate last year was only around 18.3%).
The problem here is that you are an out-of-state resident. While the UCs do prioritize CCC students in transfer admission, they also prioritize CA-resident CCC students over non-resident CCC students. In other words, attendance at Berkeley CC may boost your UC transfer chances, but being a non-resident may cancel out that advantage.
And it is unlikely that you will qualify for CA-resident status simply by moving to CA and attending Berkeley CC. To qualify as a CA resident, you would also have to find employment in CA that pays well enough to cover all of your living expenses, as well as your Berkeley CC tuition. If your living expenses or tuition are subsidized by an out-of-state family, then you won’t qualify as a CA resident.