Thinking that it would be nice to cache this value to avoid doing the substitution twice and to make it clear what `${sample%.*}` means.
Something like

~~~bash
local config_file="${sample%.*}"
if [[ ! -f "$config_file" ]]; then
  cp "$sample" "$config_file"
fi
~~~

What do you think?