I wouldn't advise anyone just starting running to train for a marathon. It's hard on your body and takes a lot of time and discipline. 
Start with a 5k, and if you like it, train for a 10k. If you like that, train for a 1/2 marathon. After that, decide if you want to move up to the marathon. 
It is not a starter race for former couch potatoes.