No, that would create a possible ground loop. What you had was correct. Assuming of course that the wall outlet was properly grounded in the first place.