The Short Version
The claim gets the place right but likely gets the historical timing wrong. Evidence consistently ties Mae Nak to the Phra Khanong canal area, yet the better-supported historical accounts place the underlying incident in the late reign of Rama III, not in the 1850s–1860s under Rama IV. Because the date and reign are central to the claim, this is more than a minor caveat.