No, the fact that you want freedom in using your own phone should not affect its warranty, under no circumstances. Nevertheless, a very few numbers of network providers may include a clause in the contract regarding the unlocking of the phone, thus it is advisable to check your warranty contract first.