For wave energy to become a fully-fledged renewable and thus contribute to the much-needed decarbonisation of the energy mix, the effects of wave farms (arrays of wave energy converters) on coastal systems must be addressed. The objective of this work is to investigate the effects of wave farms on the longshore sediment transport and shoreline evolution of a gravel-dominated beach and, in particular, its sensitivity to the longshore position of the farm based on eight scenarios. Nearshore wave propagation patterns are computed by means of a spectral wave propagation model (SWAN), variations in sediment transport rates induced by the farm are calculated, and a one-line model is applied to determine the shoreline position and dry beach area. The significant wave height at breaking is reduced in the lee of the wave farm, dampening sediment transport. We find that changes in the dry beach area induced by the wave farm are highly sensitive to its alongshore position, and may result in: (i) erosion relative to the baseline scenario (without wave farm) in three of the eight scenarios, (ii) accretion in three other scenarios, and (iii) negligible effects in the remaining two. These results prove that the alongshore position of the wave farm controls the response of the beach to the extent that it may shift from accretionary to erosionary, and provide evidence of its effectiveness in countering erosion if appropriately positioned. This effectiveness opens up the possibility of using wave farms not only to generate carbon-free energy but also to manage coastal erosion, thus strengthening the case for the development of wave energy.