It is not safe. You should never use sand in an enclosure with a bearded dragon. The risk of impaction is too great.