Not as far as I know.
I'm not sure how you could reliably automate allocation of system ids to components, except in a network where you know that there is only one system.
So perhaps you might manage this with a process - putting the vehicle on its own network, getting the autopilot id, storing it, and using that in future.
Thinking a bit more, this is a more generic problem. The system ID might change, and you might have multiple components that also need to change, such as cameras, gimbals.
So more robustly, to solve the system id changing you need something like the firmware identity of the autopilot in this first phase and all components then need to check this id and the autopilot system id, then remap their own system id.
(or the autopilot or some notional system manager needs to store the firmware id of all components, and we need to use something like
https://mavlink.io/en/messages/development.html#MAV_CMD_DO_SET_SYS_CMP_ID to reset the ids when the "master system id" is changed.
I'll add to the MAV call next week for discussion. This has come up a few times, and generally I believe people are forced to hard code.
Regards
H