Depending on what solder you use, it should be totally safe. Get lead free plumbing safe solder. No flux or acid core, no lead (Pb) or antimony (Sb), nothing for electronics. If you're super concerned, look at the alloy. Some combination of silver (Ag), tin (Sn), bismuth (Bi), copper (Cu), or...