Running water supply pipes in exterior walls is permitted, but discouraged for the reason you cite. The likelihood of a pipe freezing is increased in an outside wall. But, if you have to do it, then go for it. Minimize the amount of pipe in the exterior wall and do you best to insulate the wall cavity and the pipe. Armaflex pipe insulation should work well.