If something is 2 million light years away - let's say a supernova - then it takes, by definition, 2 million years for the light to reach us.
For example, Betelgeuse is about 700 light years away and there is speculation that it is about to go supernova. But, if we see it going supernova this year, then it actually happened about 700 years ago.
This is just an extension of the fact that a light signal from the Moon takes over a second to reach Earth - so we are seeing the Moon as it was one second ago. Light from the Sun takes 8 minutes; light from the Pole star about 400 years etc.
If you go far enough then the spatial expansion of the universe becomes an additional factor, which complicates the calculations.