That's been studied and the evidence suggests that there is some causation. Bacteria that cause your gum disease can get into the bloodstream and reach the brain, where they release enzymes that cause inflammation and can damage cells.
In particular this can seriously impair microglial cells which is something you really don't want to have happen if you value maintaining a well functioning brain.
There's a hypothesized mechanism, but again, no actual demonstration of causality. No one is RCTing brushing teeth, for obvious reasons.