The Code doesn’t explicitly say anything about it:
§ 24.2-612.2. Notice of withdrawal of candidates.
A candidate who has qualified to have his name printed on the ballot for an election shall not be deemed to have withdrawn from such election until he has submitted a signed written notice declaring his intent to withdraw from such election and that notice has been received by the general registrar. Such notice shall be provided to the general registrar of the county or city in which he resides. In the case of an election held in more than one county or city, the recipient general registrar shall notify the appropriate general registrars of the candidate’s withdrawal.The Department shall include in its candidate guidance documents the requirements and process for candidate withdrawal.