To be a bit pedantic: that’s only true for the Andromeda Galaxy (distance ~ 2,4 million light years), which is very hard to see with the naked eye. The Large and Small Magellanic Clouds are easy to see (from the Southern Hemisphere), but are only about 150,000-200,000 light years away.