You can backup your contacts to microsoft account on nokia phone, and then restore to Samsung later. Another easy way is to use phone to phone transfer tool to transfer contacts from nokia to samsung.