It's okay as long as they call it out, but the author doesn't and instead states it like a fact. They could have easily caveated it with "but a magical camera that can see magnetic and gravitational fields" or something. The analogy is fine, but it's not presented as one, so it's not clear how far the analogy actually goes. So the takeaway is "wow technically it's possible!"