As long as the water level in the tank is lower than the filter, then there is no issue.
However, I didn't have a stop valve on my original setup. I used a C clamp with a bit of wood to squeeze the supply hose to stop the water flowing out.
It was an old trick we used in the motor trade on brake hoses if we wanted to remove the brake caliper and still retain the brake fluid.