Kitchenaid water fill valve

The water fill valve stuck open and water flooded past the door seal. I will replace the valve, but should I also replace the float valve?? I pressed the cancel button, but water was still flowing after the cycle completed. Is there a way to tell if the problem is the fill valve or the float valve? Thanks… Tom