I don't know about "shift-by-wire", but I highly doubt there's a purely mechanical connection.
Just a thought experiment, but do you think if you were cruising down the highway at 140 km/h in a modern Lexus, and decided to put the transmission lever to P,R, or even 1, that the transmission would go ahead and make the shift for you?
It seems likely to me that there would be some electric/electronic override to prevent an accidental grenading of the engine.