Yes, you can. You can opt to transfer colleges in between by transferring your credits. However, the entire process depends on the transfer policies of the particular colleges/universities. You might not be able to transfer the entire 2 years worth of credits; you might have to repeat a year if the curricula of both universities don’t align.