Retainer yes, lock it by punch marks - no. The new retainers I put in after bearing replacement are only screwed in. I locked them very hard with deep punch back in the 80's. I had to use brutal force to remove them. The rear retainer for hub is not locked at all, used copper grease when the threads were to damaged after all holes after punchs. OEM + replacement.
The bearing must be seated firmly, retainers are a part of the package on axle with bearings, spacers all torqued together in a rigid packages . It must be very flimsy otherwise or the inner race might get more sideway forces than outer wich will ruin the bearing quicker, right?