I do not think it is a totally invalid argument, since the brain that gives us the sensation and pain, or better, it transmits the sensation of pain to us through the neurons, but in a way it is a doubtful point and a difficult argument.
But rationally speaking if the pain doesn't exist then the possibility is valid in that sense.