If you are planning to run one train, yes. Personally, I use 14-gauge stranded for all train circuits, as I want to assure that my trains get as much power as possible, minimizing voltage loss. I buy the wire at Lowes/Home Depot
I'm sure others will chime in that thinner wire is ok, but I built my layout to certain standards based on my 70 years experience in model railroading.