It depends on your bank or provider. Some request you pay it off before switching and others will take on your overdraft subject to your credit rating.
It’s best to discuss it with your prospective bank before applying.