Yes, you can pursue your pre-masters in one university and Master's in another. These are called "transfer students", and you must follow some criteria to be eligible for it.