LCD screens are perfectly safe from the device point of view, i.e. there is no radiation or whatnot. But you should take precautions yourself - take frequent breaks, exercise, warm-ups. There is a great free program that can assist you with this stuff -
Workrave.
P.S. If you stare at a wall for hours, I don't think it'd be safe.