Well... 19th century engineer could have a large multi-story brownstone with family and , more importantly, servants and house personnel. A butler, etc...
Some people do have live-in nannies and au pairs for kids of a certain age but I'm guessing it's not very common, at least below a certain income bracket. People do use childcare and lean on relatives (or one parent just doesn't have a full-time job outside the house) of course.
"Famous" engineers--probably. I doubt the person taking care of the steam engines lived in a fancy house. I'd much more expect the steamship owners and captains to live in that sort of property.
Today? On an engineer's salary? Ha!