Right! Section 1.3 of this publication discusses possible mitigations for the row hammer problem and where ECC fits in
[1] J. S. Kim et al, Revisiting RowHammer: An Experimental Analysis of Modern DRAM Devices and Mitigation Techniques https://arxiv.org/abs/2005.13121