It depends on the market and the rules
Players do occasionally withdraw through illness or injury, before or during a match. Whether your bet stands, is voided or settles on the result so far depends on when it happens and which market you backed.
Most televised matches are knockout, so there's a winner. Some group or league formats can finish level, so look for a draw option in the market. The betting rules cover each case.
