It's possible. Unlocking your smartphone may be considered a breach of the warranty conditions by certain manufacturers. Many carriers and service providers, on the other hand, give official unlocking solutions that won't void your warranty.