Sentence 1: Do you take me for a fool?
Sentence 2: Looking at him as he came into the room, I took him for his father.
Does take mean the same thing in these two sentences?
the same meaning