You can still refinance and cash out if you have a second mortgage or HELOC, but it might involve some complexities. The new loan would need to cover the balance of the existing mortgage and secondary loans.