Here is your reference.
440.14 Location. Disconnecting means shall be located
within sight from and readily accessible from the airconditioning
or refrigerating equipment. The disconnecting
means shall be permitted to be installed on or within the
air-conditioning or refrigerating equipment.
The disconnecting means shall not be located on panels
that are designed to allow access to the air-conditioning or
refrigeration equipment or to obscure the equipment nameplate(s).
Thank you. So is that mean yes it's OK?