Under Sprint’s unlock policy, the phone has to have been activated for a minimum of 50 days on the Sprint network, be completely paid off, and be under an account in good standing. If the phone was never activated on Sprint network, then no it cannot be unlocked.
I bought a Sprint iPhone 8 and...