They must be properly connected together using a bit of choc-block, not just twisted. Even if the wall-light doesn't need an earth, a different one in the future might, and if the back-box for the switch is metal, or the switch itself is, then this needs an earth as well.