in all but name

Hi,
Did I get the meaning of the expression right?
“He may call himself a liberal but he’s actually a conservative in all but name” (= in disguise).
“He was king in all but name” (= in effect, he was a ruler with all powers a king usually has, but hadn’t the title).
Thank you.

Sounds good to me.