I rent within earshot of a train line, you'll probably not hear it after the first week, but it could limit the buyer pool in the future.
But why purchase a home with the intention to live in it a few years and then sell? Even if you did overpay and break even on the price paid or get a...