Is a king Charles spaniel named after Charles the 1st?

The Cavalier King Charles Spaniel received its name from King Charles II.