Yes, as stated above, you may record someone without their consent or knowledge AND be able to use it against them in court. In fact, this is one of the more useful ways to gain advantage in your case over the other party.