Does this law also apply to underground lines?

No, this only applies to overhead power lines. Another Virginia state law addresses underground line safety and damage prevention.