my wife did plenty of hiking with our first child. she did not do a thru-hike, but she did do plenty of hiking. and some of that hiking was at altitude. my opinion is similar to marta's. although, for a thru-hike I would be concerned about nutrition etc for the baby....not to mention how tired you may be.