If speaking on the phone while driving, using a hands-free device is:

Under New York State law, you may only talk on a cell phone while driving if you are using a hands-free device. Be aware that even hands-free devices are unsafe to use while you are actually moving down the road.
DMV Writen Test