Smoking (of any kind) is prohibited in all indoor areas.
It is allowed in open spaces, outdoor areas of restaurants and bars but always away from public outdoor tables.
Of course, indoor spaces include your hotel room.
You should also know that in New York it is legal to use marijuana in public places. So don’t be surprised by the same smell in too many public places.