Yes, both temperature and pressure are important for conversion of state.
If we compress a liquid, i.e. increase pressure, it can be converted into solid.
However, this is not true in case of water. Water is more denser in its liquid form than solid form, ice.