Can I have a Module D based on an NMO Module B?

Yes, this is possible. Module B certificates from NMO remain valid until the validity date of the certificate, even if the Module B certificate is an EU-TEC (issued before 1 January 2021).