Umm, since you need to replace the chain, why don't you do what you know needs to be done first then see how it works?
If the chain has been allowed to wear too much it may have worn the cassette with it. If your chain skips on the cassette after you change it, the cassette may be worn and need to be changed as well.