Any kind of foreign material in your eye can be dangerous. Usually, sand, dirt or dust can be flushed out of the eye with water, saline or contact lens solution.  However, it can often scratch your cornea so you should see your optometrist if it feels irritated.