Train and race the shorter (5K - 10K) races before attempting a marathon. Running causes overuse injuries especially when a person is just starting out. Build up over a period of years. If your legs and feet are able to handle the daily pounding then attempt a marathon.