It is the lowest level. It is called an LLC, a low level code.
Planning plans from the lowest level upwards.
A finished goods item not in any BOM would have a "0" code. but a raw material in the first level of the BOM, but also in the first level of a BOM that is a sub-BOM would have "2" even though it is "1" in one BOM.