HPE branded Mellanox HW with Mellanox passive DAC cables

I’ve got some Proliant servers with Mellanox NICs (P42044-B21 - Mellanox MCX631102AS-ADAT Ethernet 10/25Gb 2-port SFP28 Adapter for HPE) which I will be connecting to a (Q9E63A - SN2010M 25GbE 18SFP28 4QSFP28 Power to Connector Airflow Half Width Switch). Both are Mellanox HW but HPE branded.

Question: Can I use Mellanox DAC cables like the ones in MCP2M00-A series for servers to switch connection?

Will these DAC cables be considered as third party or something worst like shutting down NICs or switch ports?