Can one particular type of gun residue be used against a shooter?

It is possible. Different gun powders have different ingredients. This can be determined by lab analysis.