Not so much. It was American Express what done it.
“A hat used to mean you were respectable. But if you went into a hotel with a credit card, you didn’t need a hat.”
True that John F. Kennedy didn’t wear his top hat while giving his inaugural address, but no president ever has. Even Abe Lincoln took off his stovepipe.