Can I use a different nut for my motorcycle exhaust?

I have Vance and Hines pipes on my honda shadow and a nut came loose and fell off somewhere. Can I put any type of nut on there as long as the threads are the same or does it have to be the exact kind that came off because the kind that came of was a cap nut that prevents over torque.

Any nut is fine.
Cap nuts do not prevent over torque.
They are decorative - they look better.

Ok kool thank you. The guy at autozone said it prevents u from over torque but what you said makes more since