No it isn't. Here where the error comes from:
#if HOMING_ORDER != HOME_ORDER_XYZ && HOMING_ORDER != HOME_ORDER_YXZ && HOMING_ORDER != HOME_ORDER_ZXYTZ && HOMING_ORDER != HOME_ORDER_XYTZ
#error Illegal homing order for z probe based homing!
#endif
You see you only get the error message if none of the 3 homing orders is selected in configuration.h