Settings -> Siri & Search -> allow Siri when locked = OFF
However, if you have Hey Siri enabled, and the device screen is unlocked, then yes, "Hey Siri" doesn't care who issues the command. Siri has always been voice agnostic - it is not trained to respond to one persons voice.