Right
卡 supplies the sound kā with a tone shift.
卡 itself is a modern compound of
上+
下, "stuck between up and down" — to wedge or jam. The clicking sound of something snapping into place fits the onomatopoeia:
咔嚓 the click of a camera, the snap of a branch.