Can i put a old unactivated sim card in a iphone 5s to unlock it?

Can i put a old unactivated sim card in a iphone 5s to unlock it?

Added (1). so i want to buy a used iphone 5s on ebay but i don't want a plan so will a sim card that has not been activated work or not i just need the phone no plan or 4g just Wi-Fi

It should. When I bought a used 3GS several years ago the owner just left his old deactivated SIM card in it so I could verify the phone function and Wi-Fi worked. Essentially it will be an iPod Touch. I'd also just switch it to Airplane mode and manually turn Wi-Fi back on.