Is there a way to update an item valuation through the cost as per BOM?
Yes, you can update the Item valuation rate through a Stock reconciliation transaction.
For more details, please refer to the below link:
https://docs.erpnext.com/docs/user/manual/en/stock/stock-reconciliation
Hope this helps!