I think this depends on where you live and the industry you work in. In Canada you are protected by law. If you give two weeks notice and your employer fires you, they have to pay you for the whole two weeks. There are exemptions to this though. You are best to check local labor laws.