Pumping doesn't interfere with getting an erection at all. For most guys, the sensation of pumping will produce an erection. Viagra works to make it easier to get and maintain erections. However, to maintain the size achieved by pumping usually requires a cock ring put on immediately after pumping, whether or not you've taken Viagra.