Every accessory after the fact is guilty of (i) a Class 6 felony in the case of a homicide offense that is punishable as a Class 1 or Class 2 felony or (ii) a Class 1 misdemeanor in the case of any other felony. However, no person in the relation of spouse, parent or grandparent, child or grandchild, or sibling, by consanguinity or affinity, or servant to the offender, who, after the commission of a felony, aids or assists a principal felon or accessory before the fact to avoid or escape from prosecution or punishment, shall be deemed an accessory after the fact.
Va. Code § 18.2-19