well, not quite. It'll go into the lockfile and you won't get a new version if you just build again, but if you add or remove a dependency that version may shift around a bit as a part of dependency resolution.
Only if that different version is a dependency of a dependency. Your own will never change.
> but if you add or remove a dependency that version may shift around a bit as a part of dependency resolution
is completely deterministic