If your current circumstances make more sense for you to attend community college with its cheaper tuition and flexible schedule of programs with the intention of transferring to a four-year institution later, then go ahead.  Just make sure to check whether your credits can be transferred to your target college if you change your mind.