Yes, it is generally considered morally permitted to tell a lie to avoid torture. This is because preserving one’s life and well-being is a higher moral priority than telling the truth in extreme situations. Lying in this context is seen as an act of self-defense and protecting one’s dignity against unjust harm.