There are two caveats here: (1) you have to actually get into a habit of doing the healthy thing; and (2) when you slip, because your brain has grooved your old habits much more deeply than your new ones, you’re prone to fall back into the old habit pattern and stay there.