As long as you don't sell the unlocked phone for profit being that it is unlocked (if that makes sense). You can unlock your OWN phone for your OWN, personal use, but beyond that, you can get in trouble.
I can make how many gallons of moonshine per year for personal use?