Yes, but it must be frost protected – insulated – on the water mains either in a sealed service box below ground or lagged if above ground e.g. in a garage or shed. Ideally, you would fit it inside the house.