If you are asking that using darkness to produce electricity the according to me the answer is no. because darkness is not a medium and too it doesn't have any source. it isn't something like wave or Ray or any other material.
for producing electricity by darkness first you have to study about it about I texture appearance characteristics. even still we aren't having proper knowledge about any of its characteristics then how we can produce electricity or any energy from it.