Tell me if my phone will work?

So i would like to buy an iphone 7 off of boost mobile's site, but I want it to have metropcs coverage for a prepaid plan and activate it with them. Would i be able to do this? I don't know if they work on the same network (GSM or CDMA) or if that even makes a difference. Or would i have to pay extra to just unlock the phone completely?

Ask your provider.