Can you replace a used iphone with verizon?

I severely damaged my iphone and saw that I can buy unlocked iphones on Amazon. Can I just buy one of those and transfer the card from my current phone?

If the phone has a warrenty then it will

Those phones won't work with Verizon