Yes it would. There are backup systems to keep things working even with both engines dry (ram air turbine etc). In fact, if you really want to stretch our a glide, all those automated systems are probably a good things. They will keep the aircraft more perfectly trimmed for a glide than the pilots ever could by hand.
If the electrical failure is severe enough to lose control authority, it seems just as likely that a hydraulic system would have failed. These planes are just too large to operate the controls mechanically, so in practice there is just as much to fail in a hydraulic system as electrical control, since both require power.
That is what the RAT is for, alternative electrical power. If the entire electrical system is down, ie electrons no longer flow anywhere anyhow, then everyone is doomed. But that is up there with the tail falling off. The are no backups for the wings/tail either.
https://en.wikipedia.org/wiki/Ram_air_turbine