Yes, you give your notice and they fill your position and they can either let you go early and pay you up for the remaining period, or make you work to the end. But either way, you salary must be paid up until the end of the 12 weeks. Plus any holiday due.