SRAM has both shifters and derailers that are Shimano compatible and those that aren't. So there's no guarantee that SRAM + SRAM will automatically work unless you keep track of the model.
If you already have another derailer, try it on. Can't remember offhand which are Shimano spec and which are SRAM spec.