IPhone xs max? Pay as you go?

Can you get the iPhone xs max on pay as you go? Or do you have to get a contract?
What happens if I get it sim free?

Yes if you pay for it in full and get the unlocked version, then you just put whatever pay as you go sim you want inside it.