Well, not really. Ash is what's left after all the combustibles have been consumed.
Biogas comes mainly from sewage treatment and is a valuable source of process heat within the works. A well-run major sewage installation should be a net exporter of electric power as a result.
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856