Shutter speed, as long as it is within sync speed, only matters for the ambient exposure because the flash itself is really fast, typically shorter than 1/1000 at full power, much shorter at lower settings.