Unfortunately not accurate. A better account here;
garethdennis.medium.com/the-not-so-glamourous-origins-of-standard-track-gauge-2b5f1ae7e3bc
It was actually George Stephenson (hence 'Stephenson gauge') being an engineer and solving the problem he had at the time.