ISO always matters, even when using a flash. The higher your ISO goes, the more grain or noise your images will have. Flash photography gives you the advantage of getting to use lower ISO settings even in dimly lit conditions.