Yep. Be careful when pulling the speedo cable out of the box, as you don't want that plastic gear catching on something and dropping into your gearbox.
The gear is held on to the cable by a little circlip, if memeory serves you just need to press it in and carefully pully on the gear and it should slide off. Don't lose thje circlip

When reassembling, you should be able to see the "back" of the circlip, not the open end, through the little hole in the gear. If you don't see it then the gear isn't pushed up right.