Presumably you’d baby proof your home and would address any spots where the paint is flaking or chipping off the wall. Especially if you knew it was an older home.
Honestly unless the lead paint is the topmost layer, or they put so many coats of regular paint on that it’s falling off the wall, the actual risk of a toddler encountering and then consuming the paint chips is shockingly low.