Nonsense. The Pledge of Allegiance was written in 1892 by socialist Francis Bellamy.
Like many American socialists of the era, Bellamy subscribed to John Dewey’s notion that government should exercise monopoly control over education in order to produce citizens with sound “progressive” ideals. It’s no coincidence that the pledge was written for an event (sponsored by the National Education Association!) called the National Public Schools Celebration. The goal was to instill mindless loyalty to the national government so that it could more readily socialize American society – a goal that America’s founding generation would have found deeply abhorrent.