You don't say what size cassette you are using now. If the chain was maginally long enough before it will be too short for some gear combos with the larger cassette. You might have to get a longer chain if this is the case. Otherwise it should work fine.
You don't want to find out that your chain is too short when you are out on the trail and try to shift. You can bend or break your derailleur!