Yes, in a specific and limited way: tracking changes your behaviour because it gives you a feedback loop, not because the act of writing has some special power.
Here is the arithmetic. If you track a habit for 7 days and see 5 completed and 2 missed, you now know something concrete - the habit holds on weekdays and slips at weekends.
Without that record, you'd just have a vague feeling of "I'm doing okay, mostly." The tracker replaces the vague feeling with a pattern you can actually act on.
That is the honest limit of it too. A tracker shows you what happened - it does not decide what you do about it, which is why the next section matters more than the log itself.