No. Grout and caulk are not waterproof. Caulk in the shower is basically aesthetic—it wears better over time than grout. If you have a leaky waterproofing system in your shower, you need to address that, or the new grout will start to mold again.