In very unusual, or extreme circumstances, ie where the direct alternative is care (single parent has a major accident, child brought up by grandparents who are no longer able to physically do all the care), that sort of thing, fine. Or in the case of a deaf school, I can see the merits in it. I also see the point in occasional boarding a night or two a week.
Otherwise, no way for a young child!!
Change your job, change where you live, downsize if your income will fall as a result. If you're in the army and know you can t leave for x number of years, how about waiting until you can leave before sprogging, or the other parent stays in one place to provide the stable home.
By staying in a job that requires boarding from a young age for a child to have stability, you're surely saying that you value that job, or a nice house, and nice lifestyle (potentially) above your child.
And whilst yes, of course you get nice 'house parent' like the ones who have been on here, but if find it sad that they can't have their actual parents, because they are too busy being important etc.
Family is everything.
You make sacrifices for your kids, and if thst means your career takes a backseat for a few years, then so be it.