Well, no. Although optical illusions can distort your vision somewhat, they cannot permanently damage your eyes. If you have had eye problems in the past, though, you may want to be wary of optical illusions.
Eye creates images where ever you are looking. By the color, darkness, brightness, its shape etc. the brain can tell you that its 3D, Moving, Standing and etc. In case of illusion, it depends because...