you are correct -- I highly simplified it with "by converting them to Protestantism" -- actually that's wrong, I would say more abetted it. But imagine if Scotland had not become Protestant? Politically it would then remain much more distinct from England -- like the Irish did
The fact that the Scots were fellow Protestants helped the island country not fear a land war