Yes, It is possible to stock in the raw material or sub-product after the main product has been stocked out.
To do so, Please refer the steps below:
Step 1: Click on Inventory >> Timeline >> Edit
Step 2: Please change the option from No to Yes for stock in raw material
Step 3: You can see the raw materials or sub - products for the main product and click on Save changes