No, an optical illusion is a picture that tricks the eyes and the brain into having a sort of "argument". A paradox is a statement that contradicts itself and the laws of the universe, while somehow making sense.
A girl goes into the past and kills her grandmother. Because of this, her mother was never born, so the girl was never born, so she never killed her grandmother.