Yep, only way to get them on board. There wouldn’t be any EU if they hadn’t said this.
They can leave though. UK would advise against it, I believe.