No, you cannot park your bike anywhere in New York City. Bikes must be parked in designated bike racks or other bike parking facilities. Parking a bike in an unauthorized location can result in a ticket or having your bike impounded.
New York City has thousands of bike racks located throughout the city, including on sidewalks and in parks. Some neighborhoods also have secure bike parking facilities, such as bike parking garages or bike valets.
It's important to make sure your bike is securely locked when parked, to help prevent theft. Use a sturdy lock and lock both the frame and the wheels to the bike rack or other secure location.
In addition, be sure to follow any posted signs or rules related to bike parking. For example, some areas may have time limits on bike parking, or may prohibit parking in certain locations during certain hours.