Stop cost posting to completed Work Orders

Is there a way to set a warning when posting cost to a closed work order?