No as they cause a nuisance.
They do not act as a safety device when loud as the noise heads backward and not toward a driver that might pull out on a biker.
I read an article years ago about a study of safety at train crossings. Something like 2 dozen people are killed in the US every day crossing train tracks. The train makes plenty of noise but they don't hear it! Because the sound streams out mostly to the sides and back, but where you really need it is out front.
Aftermarket exhaust systems are one of the biggest-selling accessories, for all kinds of bikes. Bikers insist they add horsepower, but all they really do is make more NOISE. It's not about more safety, it's about getting attention. And it's REALLY ANNOYING when one of these cretins comes past your house at 2:00 AM.