garcon, If you use a cassette that is compatible with your brand and number of gears, then possibly. It may depend on how great the difference is between the new and old cassettes (which can effect other parts).
Let us know what you presently have, both front and rear and what you want to use.
Brad