If I buy a sprint iPhone 6 plus will I be able to change it to AT&T?

I broke my phone a couple weeks ago and I'm about to buy an iPhone 6 plus, but it's for sprint. Can I change the service provider?

It would be locked to Sprint. You would have to get it unlocked to use on ATT.