Assuming you are referring to the product DampRid, which is a moisture absorbing product:
DampRid is generally safe to use in a gun safe. However, it is important that you place the DampRid in an open container, and not in direct contact with your guns. Additionally, you should check the level of moisture absorption regularly, and replace the DampRid as needed.