R4 Aggro mech and Blaster Turret

By macar, in X-Wing Rules Questions

So R4 Says

When attacking, after you spend a focus token, you may acquire a target lock on the defender.

Does this mean when you spend your focus token to USE the blaster turret you would get a lock on the defender?

yes it does. The only requirement is 'When attacking' and you are attacking as soon as you declare your target.