The creaking of floorboards can not be completely avoided. Even very old floorboards still "live" and the wood can develop noises through its structure. However, if the noise becomes disturbing and getting worse, it is worthwhile getting to the bottom of the cause and getting the best possible cure.
Determining the causes
Many do-it-yourselfers try to eliminate the creaking of floorboards by injecting construction foam. With this procedure you risk that the construction foam removes some noise sources and creates new ones in parallel. Preferably, friction reduction is always preferable to filling cavities.