There's definitely a causative relationship between A and B, although it's not the only factor (of course, safer road design is probably a more significant factor)
When mandatory helmet laws were introduced across Australia we saw a sharp drop off in casual cycling rates which we're only recovering from now. If we never suffered that drop, perhaps we'd have a stronger cycling culture today.
Therefore ->
A) more people ride bikes.
B) Less people wear helmets.
A and B are correlated, but this is due to a 3rd external cause. They do not cause each other.