Not EVERY time. But yes, the risk will always be there.
If you were further away, or closer to, the dress when taking this photo, the moire might not have appeared. Moire is an effect which happens when the fabric pattern is about the same size and the pixels on your sensor.