Newbie

I live in a cold climate and I also have very bad knees. Is it possible to train on a elliptical for a Marathon?

Thanks