Yes it's is, as client_cmd only executes the command to a specific player, which in this case is playing the shooting sound.
Btw, for such questions you should really test it yourself instead of making thread.
I alredy test,and work.
I was only interested in the opinion of experienced people from this forum:is this the correct way.