shutter speed has no bearing on the exposure of the flashed subject (except your camera's max sync speed), but is used to control background exposure (as long as the background is far enough away that the flash won't really affect it).