It looks like the right stuff.
Those yellow sticky traps are good for keeping fungus gnat populations down but they arent a complete solution because fungus gnats reproduce in the top layer of soil. They will keep pouring out of a pot until the source is dealt with.I use the sticky yellow strips for thrips and they should work for gnats. Although gnats are excellent ping fodder.