Went to CC for two years, took a break, going back.

As the title suggests, I went to CC for two years. The latter part of my CC journey was filled with personal problems. I applied to UCs despite the lack of credits, so I decided to take a break for a year (and focus on my mental health). Now I’m starting fresh and going back to CC (I’ll be attending a different one), with the intent to transfer to a UC (or maybe even an out of state Uni). Can I still reapply to UCs under the same major or does it have to be different?