Was the main purpose of the Ku Klux Klan to destroy the Republican Party?

Was the main purpose of the Ku Klux Klan to destroy the Republican Party?