Exhaust pipe

Is there a place where I can buy a straight exhaust pipe that’s
about 3 feet long and will fit over our stock pipe? I check my local muffler shop and they won’t sell it to me.

Now, if I go to Home depot and bought a pipe, is it safe to use?

(sorry, posted under the wrong section. Please move me)