You can write a contract and sign it with bitcoin keys and even put it in a block. However, you need real world systems to enforce contracts that pertain to real world goods. So far, these are all centralized. Google 'oracle problem' for more details.
You can write, sign and store the contract, but it will be difficult to get the authorities to take it seriously if there's a problem.