I think the opposite is more true-- the touch affects the sound.
It is hard to do a "piano" on my grand without using the una corda pedal, because an effort to "light-touch" the keys means the keys may not always strike.
I think some piano actions are more responsive to touch than others.
My piano is supposed to have a German Schwander action.