It could only brake if you update your packages locally and redeploy your app, if you do not redeploy then package versions are fixed.
Also, you can use renv to manage your environment and fix package versions even locally for that particular project, that way packages don't get updated on redeploy either.