same brand, and similar series yes, no problem. However manufacturers change the derailleur pull ratio whenever they get bored so try to span too many years mismatch. This doesn't carry up to 10s because the cassette spacing changes between 9and 10s.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.