Are you saying you put a 'cord cap' on the NMC? Then a cord to the DW?

As to the routing of the NMC, it has to be protected from physical damage. Possible or probable, that's an AHJ call.

Most DW here are hard wired. The cord (plug-in) ones the receptacle is accessable, under the sink cabinet.


John