Yes, some fluids can change their viscosity in an instant when under stress or when mixed with another substance. These are called non-Newtonian fluids. A classic example is a mixture of cornstarch and water, which can act like a solid if you hit it but flows like a liquid when poured.