1. The pilot will take off the plane.

2. Don't take off the poster from the wall.
3. I don't want to take off my hat inside.
4. I need to take today off, for I feel sick.
----------------------------
I have written down some sentences containing 'take off.' Are they all grammatical?

3 and 4 are correct.

1. The pilot will take off IN the plane.
2. Don't take the poster off the wall.