You'll need your iPhone's IMEI number if you want to unlock it and use it on a different cellular provider.
You can check to see if your iPhone is unlocked from a carrier using any of a few different methods.
Knowing this short code will prove itself useful if you ever happen to lose your phone, given that you entered the code prior to misplacing your phone, that is. Entering this into your keypad shows ...