Yes it’s a deterrent, but they are not being deployed to Ukraine. They are being deployed to NATO member states, ostensibly in case Russia gets a bigger appetite after (potentially) defeating Ukraine.
Now step back a minute...weren't we going to cease recruiting NATO members as part of an agreement with Russia? Something about de-escalation of hostilities, nuclear arms, etc....
Russia appears to have kept their end of the deal.