True, but somewhat misleading, because lawmakers found other ways to effectively ban cars:
"backlash against these large speedy vehicles resulted in the passage of the Locomotive Act (1865), which required self-propelled vehicles on public roads in the United Kingdom to be preceded by a man on foot waving a red flag and blowing a horn"