Yes, woodworm can potentially eat painted wood if the paint is not thick enough to completely seal the wood. However, painted or varnished wood is generally less susceptible to woodworm infestations than untreated wood. The larvae of wood-boring beetles prefer to lay their eggs in untreated wood or wood that has been damaged by moisture or decay.