I currently am paying off my samsung note 9 which I got through the buy one get one free deal. I am not liking my phone well and I want to switch to an iphone. If I purchase an unlocked iphone xr from apple would I be able to put my sim card into the phone and make the iphone function?