Bitcoin cannot prevent inflation for fiat currencies managed by nation states by itself, but it prevents inflation in Bitcoin itself. It can therefore be a hedge against inflation by offering an alternative to bad nation-state money.