I love this analogy. Not only is it a good analogy, the underlying mechanisms causing bugs to be drawn to light and humans to be drawn to instant gratification are both results of our biology and evolution through thousands of years of life before modern civilization, and both can have really devastating outcomes in modern society.