No, it is not a reliable option to prevent the bursting of the pipe on a cold day as shutting off the valve stops the water supply, yet the pipe continuously stores water and can burst out. The feasible solution to avoid this problem is to insulate your walls.