If it is an actual "Sim card" and not an "SD card", then it will depend on if you are using the same service and just switching phones. If that is the case, it 'should' work, but you really should check with sprint to be certain. They may need to do something on their end. Different carriers handle things differently.
Now, if you are talking an "SD card" then unless it was set as "internal" on a phone prior to the new one using "Marshmallow" it should work on a different phone.