Water, when boiled, kills all the bacterias in it. And basically, this is a general principle, doesn't matter what appliance you are boiling the water with. So till the time your kettle is able to boil the water, it is also killing all the bacterias in it.