It depends. You should be continue to be paid up until the time that you're laid off, and once you're laid off, you're free to look for other jobs anyway.
The difference is that depending on your contract, if you're laid off, you may be entitled to a redundancy payment, whereas if you leave, you definitely won't.