Yes. During your border check, present both your new passport and your old passport containing your valid visa or residence permit. Take both passports with you when travelling.