With proper training
With any endurance activities it is wise to have proper guidance.
Training with a club or group of experienced runners who can mentor you is helpful. Proper training and shoe gear is helpful in avoiding injury and discouragement. A simple tip in training is to follow the 10% rule: don't increase your mileage more than 10% a week or your longest run more than 10% a week. Dr l.