Yes, it can! There are lots of different ways to remove bacteria from drinking water. Tap water, for instance, is treated with chlorine to remove the bacteria, while home filtration systems use UV rays to destroy water. If you want to be pedantic, you’d argue that the bacteria aren’t actually filtered. Instead, they are killed by chlorine, UV rays, or ozone. Either way, the end result is the same, you get water without bacteria.