Yes, rooting Android voids the warranty of your device. Rooting your phone means that you are using the product in a way that is not prescribed by the manufacturer. So, in that case, you cannot get your mobile replaced under warranty.