2003 ml350 I bought from the auction and only turns over but dose not start

Will a bad shift lock mechanism cause my vehicle to turn over but not start. Now every time I put the key in the ignition it gets stuck and I have to use the button on the mechanism to get it out. Please help