No, no, no, no a billion times no to this absolutely not no
The moment you give your resignation, there are good odds your company will say "we accept your resignation effective immediately. Goodbye." Sometimes it's a blanket company policy to do this, sometimes it's because they know you're going to a competitor and they don't want you to start training for your new job, sometimes they were on the fence about you staying anyways.
Do not do this ever end. There is a significant chance you will be instantly fired with no income for months. Don't.
The moment you give your resignation, there are good odds your company will say "we accept your resignation effective immediately. Goodbye." Sometimes it's a blanket company policy to do this, sometimes it's because they know you're going to a competitor and they don't want you to start training for your new job, sometimes they were on the fence about you staying anyways.
Do not do this ever end. There is a significant chance you will be instantly fired with no income for months. Don't.