Opportunities and Quotes

Is it possible to automatically update the status of the opportunity when the quote to which it is linked is won or lost?