Yes!!! You are right shabbir

Assuming that both know who tells the truth and who lies, ask anyone:

Which door will the other person show me if I ask him to show me the
life door?
And then choose the other door from the answer to the above question.

Suppose L and D are doors. And T and F are people.

Ans from T: D (as T knows F will answer D (false) and T gives this
answer truly)
Ans from F: D (as F knows T till answer L (true) and F gives the
opposite answer falsely)

Since this gives D, we go for the other door L.