1- you will not be able to update any Delivery costs if PO history (MIGO/MIRO) has been created for the PO items.
for other cases You can try and use the BAPI_PO_CHANGE to delete the old condition and update the New condition.
SAP note on this : Note 439110 - Enjoy PO BAPI: Conditions
some Discussions on this BAPI: