About to move

So I am about to enroll in a community college but I have hit a speed bump and realized I may need to move soon. Should I enroll, then move, and get my enrollment transferred to the community college in the city I Move to? Or go ahead and wait to enroll in the community college of the city I’ll live in?

How long would you be able to study before you move? Would the classes be online anyway so you could be physically located anywhere while you finish up the semester or quarter?