Not quite. You still have $40k of cash in it as equity, so you have lost $160k.
If you put $40k of cash into the stock market, then yes. Hopefully you have a good dividend with it.
If your property halves in value, but you can easily rent it out and can cover the mortgage repayments, you...