Would sherry cooking wine work as a subsitute for dry sherry wine?

Graham Kerr once said when asked about cooking with wines and cooking sherry, "If you wouldn't drink it don't cook with it."