This is indeed one of the main reasons that modern cycling advocates generally consider helmet laws a bad thing.
Helmet laws make the general public less likely to cycle, and as many would then drive instead, thus have an overall negative effect on public health.