Don't know about altitude effects, but trekking/walking with an infant at places like Machu Picchu, Pisaq, Ollantaytambo, etc, or the boat at Titicaca lake, may complicate your travel considerably. Those are not suitable places for babies.
And Sorojchi pills are not recomendable for children younger than 10yo