Can I put a sim in a locked iPhone?

I bought an iPhone 4S on a contract 2 years ago and it was on orange (it has run out) When it ran out my phone got locked can I put an orange sim in it since it is on the same network?

Same network? Yes and then activate. Best luck.

If your SIM and phone both are on Orange, why not?