You should only take courses that are transferable by using the website of the 4 year university to verify your plan, then follow their specific transfer instructions, some will offer automatic admission if you pre-enroll and maintain a minimum GPA, etc…
Because schools have different policies, I would contact an admissions counselor to review your plan before you apply.