J.H.
You would have to get an electrician to check it out to see how expensive it would be , but yes you could replace it, but I had a gas stove with my children growing up, an the knoobs were not within their reach, but if they had been able to turn them on, they automatically light, so no raw gas would be excaping. If you don't leave someing thing on a burner, in case one did get turned on there shouldnt be a problem. And a toddler shouldn't be able to reach the turn on knobs, so I really don't think you need to worry.