It can be used, but the protocol is not supported, and there will be no fast charge.
The highest charging speed is expected to be around 10W.
Apple's fast charge protocol is PD protocol, Huawei's charger does not support PD protocol, can not provide 27W charging speed, usually the highest can only provide about 10W charging power.