Does sealant protect against stains?

Absolutely. Since grout sealant is designed to keep liquids above the surface of the grout, stains are rare. Be wary that some cleaners may wear away at the sealant, and certain liquids can damage the sealant. That said, oil- and water-based liquids should not penetrate the surface, which means that staining is impossible.