Caulking over cracked grout is not an ideal option. You can use certain waterproof acrylic caulk in the shower, but at best, it’s only a temporary solution until you can replace the grout.