I talked with strangers many times as a child, usually at my own initiative. It certainly never hurt me. I understood it wouldn't be safe to get in a stranger's car, but that was no reason not to talk.
"Why You Should Talk to Strangers"
https://lifehacker.com/why-you-should-talk-to-strangers-and-why-stranger-dang-1847467102