I am used to a "cable" being connected from the gas pedal to a throttle body. "drive-by-wire" implies you have some electronic connection to the TB. Is that the case?
If you indeed have a cable system, then of course you could lube the cable and linkages as well as clean the TB. But I would guess as Anarekist says, it is the TB which needs cleaning.