Yes. Most installations in European Geography use the concept of CHP (Combined Heat and Power). It is possible to achieve 85-90% Efficiency in such installations.
Viability of Biogas to Electricity completely depends on the context of the project. Where Diesel is used for electricity generation, Biogas to Electricity becomes highly viable