No problem with respect to chain (7 and 9 speed chains have the same internal gap). However the chance of a random chainset having the same bottom bracket spindle system, and delivering the same chainline as your old chainset with your existing bb is, eh, not good, so you might want to check that. Also if the large rings of the two chainsets are different in tooth count, or large/medium ring tooth difference are different then your front mech might not like the new chainset and you might need to change chain/length. I am assuming the two chainsets don't have very different tooth range and therefore rear mech capacity is not an issue.