Product consumption on manufacturing orders

Hello, can I consume the product based on the size of the raw material in the manufacturing order module?, for example I have 1 piece of wood with a length of 10cm, I will make a door and I need 1 piece of wood with a length of 6cm, after finishing production, I only have 1 piece of wood left with a length of 4cm can this case be implemented in the Dolibarr application? thank you