700.12(E) Unit Equipment specifically allows it:
Quote
Flexible cord-and-plug connection shall be permitted, provided that the cord does not exceed 900 mm (3 ft) in length. The branch circuit feeding the unit equipment shall be the same branch circuit as that serving the normal lighting in the area and connected ahead of any local switches.


Earl