Yes, being hit in the eye with any kind of object can be dangerous.  An immediate visit to your local eye doctor is recommended to ensure that you don’t have any corneal abrasion, bruising or internal bleeding of the eye.