Upper Ball Joints

Can you tack weld them in to make sure they don't come out while keeping a wet rag on the joint to keep it cool??