that is correct, but, unhook the spring from is spot there under your thumb, first. it needs to be 'unloaded'
slide the brake pivot shaft into its hole, with the upright, pointing straight up. its top should be in front of the swingarm....and position the tag end(small bend) of the spring in its place on the frame rail
Just before you slide the shaft all the way thru, compress the 'hook' which is pictured under your thumb, into position around the upright....
might be easier too, to get the rear brake arm on, with the cotter pin, while this is all off the bike...