The trickle charger is not the primary problem with galvanic corrosion.
The electrical charge needs to 'leak' from your electrical system to something metal on your boat that is connected to the hull.
Bottom line, yes it can, but you would have pre-existing conditions that allow it to happen.
This is usually improper grounding or a compromised ground bonding setup.