No, the pencil will appear to be bent to a different extent, if instead of water we use liquids like, kerosene or turpentine.
This is because bending will be different in different liquids since the velocity of light at the interface separating two media depends on the relative refractive index of the medium.