Yes pitch will not change because loudness depends on amlitude. By hiting it hard it will make its amplitude higher.But the frequency will be same. And the point is to be noted is that the loudness depens on the amplitude not the frequency.
​Regards