transfer from uc, to cc, to csu?

what about like uc davis, i know they have civil engineering, and they also have the TAG program, would it work if i go to a cc for my sophomore year?