Is battery rust a chemical reaction?

Well Im no scientist but it may be just like rust on a car...?