Depends where you get them. My iPhone was SIM locked to T-Mobile(EE) until I paid a fee to have it unlocked, so I could use a Brazil SIM in it when I travelled there earlier this year.
If you buy from an Apple Store or from the online Apple Store, you can be sure it is unlocked already, otherwise you can't.