Not in a city they aren't. They are an excellent commuting tool that offers much of the flexibility of a car for a fraction of the cost and much better commute time.
But the moment it belongs to you and even before you leave the lot, you can have illegal aftermarket exhaust systems installed that not one governing body in the United States, nor most of the rest of the world, will come close to enforcing any noise or emissions laws against.
Edit: although the noise thing is valid, I'm perpetually annoyed with the "loud pipes save lives" crowd, that's obnoxious.
https://gearjunkie.com/motors/motorcycle-vs-vehicle-emission...
See this article to show how a modern motorcycle would be ~100x less polluting than the example vehicle given in the article referenced:
https://www.acem.eu/new-euro-5-environmental-standard-for-mo...