Are scavengers and decomposers part of the energy pyramid?

Definitely, yes.

These two (The decomposers and the scavengers), are part of the energy pyramid.

The decomposers is located at the bottom of the energy pyramid.

Also the scavengers is located at the bottom of the energy pyramid.