If your cassette is worn, your chain is likely worn as well and can be replaced. If your chain is fairly new, you can ride slowly with the new cassette and watch for performance issues (e.g. skipping).