Preventing CEL codes

If the engine that I'm swapping into my car requires more control units than my car actually has (e.g. evap canister vent shut valve, bypass solenoid valve), can I connect a jumper wire from a power source on the ECU to that control units pin to prevent it from throwing codes? I'd make sure the voltage is the same.