That's not a robot problem, that's a toddler problem.
We don't leave our young toddlers to roam freely around the house for a reason. Our homes are full of hazards to these risk-seeking small people and a robot is just one more on the list.
Well, if that is how you manage other hazards in the home, then yes.
I would recommend another approach though. We decided for making changes to our home to allow our toddler to be safe in our home environment without being notably constrained.