If I have a iPhone 6s, could i use more than one carrier at different times?

So I'm thinking about switching to Sprint. At the moment i have a iPhone 5 with a AT&T prepaid sim in it. If I get a Sprint iPhone, would i be able to switch to my prepaid one and not get in trouble? (At&t has service at my cabin, sprint does not)

Apparently not