Miss Marple said:
If it is the law in Nazi Germany not to hide Jews, and you disobey and hide them, are you not in fact practicing deception? Is this not a type of lie?
I find Ames helpful in clarifying the concept of "lying." The answer to your question is "no." Whether lying should include the "intent to deceive" or not is another matter (Perkins includes it). From an old post I made.
"18. A lie is properly a testimony, whereby one pronounceth otherwise than is in his heart. Acts 5. Whence is that phrase in Scripture of a double heart, of a man that is a liar. Psalm 12:3.
19. But because a thing pronounced, doth not consist only in outward words, but chiefly in their sense; therefore the same words which are true in one sense, in another sense become a lie. Matt. 26:61.
20. Ironies, fables, jests, repeating also of false things, and the like are not lies, because they are not testimonies; and they are not testimonies because they are not confirmed by the credit and authority of the speaker.
21. An intention of deceiving, although it do almost always accompany a false testimony, yet it is not of the essence of it, neither is it necessarily required to a lie; for although one knows that he with whom he hath to do cannot be deceived by his lie; yet if he have an intention in speaking to affirm that which is false, he lies no less than if he had hope of deceiving.
22. An intention of hurting doth indeed increase the mischief of a lie: but it maketh not the nature of it: for if a man out of jesting or a desire to please and be officious, confirm that by his credit which he knows to be false, it is a lie: pernicious of its own nature, if not others, yet to the author himself: as it is in those who are given to flatteries or boastings, or are delighted in confirming monstrous fables or fictions unto others.
23. An intention to speak that which is false, makes a lie, although that which is spoken be most true.
24. The asseveration of a thing uncertain for certain, is accounted with a lie although we think it to be true.
25. Also that secrecy whereby one doth not speak the truth when Justice or Charity requires it, doth partake of the nature of a lie.
26. But when neither Justice nor Charity requires to give testimony, then the truth or part of it may be concealed without sin. Jerermiah 38:27.
29. That dissembling which consists in deeds or signs, and not in words, is not properly a lie: unless the same either of their own nature, or by some certain appointment, have the force and use of speech: as, 1 Sam. 20:20-22, Matt. 26:49. Because such deeds and signs that are not verbal, have no certain and determinate signification, so as they can have the force of a testimony.
30. Therefore such dissembling is sometime lawful, as in warlike stratagems. Josh. 8:31. But it is made unlawful when in respect of the end or manner, it fights with religion, Justice or Charity." (William Ames.
The Marrow of Sacred Divinity)