The overall length of the replacement flex pipe may not be the big issue but the diameter of that flex pipe compared to the stock pipe diameter could be. Might need some adapters and there is a good chance it will leak. After experiencing some crappy half-ass welding of a replacement flex pipe from Meinke muffler I recommend buying the entire front exhaust pipe preferably OEM.
Just be warned about the Autozone flex pipes - mine only last a handful of years before they need to be replaced. The mesh just came off my latest one yesterday. Though I may or may not have bottomed out the car yesterday on a dirt path.