Unless the fare rules specifically deny it, I see no reason why not. Even if they did, most agents would likely see "D" and allow the upgrade anyway.
Seems odd that it books into D, and not Z. I assume that this is on a 3 class aircraft, and not one with just a phantom F cabin?