Yes. Children are literally little humans. They have enormous brainpower, they just lack the experience they need to use it properly.
And I learned Hungarian (and Portuguese) as a kid.
The only issue is that there’s a critical window in there that shapes your accent.