I didn't, but by the time I visited Machu Picchu I had already spent a couple of weeks at altitude, including climbing a 6,000 m summit.
Altitude sickness is a weird one, I'm a smoker and don't exercise, yet I was affected less than my friends who were all non-smokers and exercise regularly.