Yes, but I guess it depends on the bank/lender. I don't know all the specifics but My friend refinanced and they had to do a walk through for appraisal. Inspector found his grow in his attic. He ended up losing his home.
I know that he lived in a no grow county and also his wiring and stuff wasn't up to code. I'm thinking it had to do with his home owners insurance cancelling and he couldn't get another.