You are referring to what is commonly called a "reverse transfer." It depends on your state and on the institutions. Some community colleges will accept only a limited amount of credits from a 4-year college, even though the individual has completed many more. Sometimes, only credits from certain classes are eligible to be transferred. 
Also, sometimes the reverse transfer can only happen when the 2-year and 4-year institution have an established agreement in this partnership.
A lot of community colleges welcome reverse transfer students because they boost the institution's graduation rate. The reverse transfer students can also become role models for the new community college students because they have more experience in a college classroom. 
So, a reverse transfer can be your first step in a new direction of a new career. You should speak to the admissions office or a counselor at the community college and get EVERYTHING in writing so there would not be any misinterpretation over what courses are transferable.