If a shutter malfunctions because of a manufacturing fault (and not because of wear and tear) and if this failure happens during the warranty period, the camera producer will indeed replace the shutter free of charge.