There are a few exceptions to this rule. For example, if a person is fleeing persecution or violence in their home country, they may be granted asylum in another country. However, even in these cases, the person will still need to go through a legal process to obtain asylum, and they may still be subject to arrest if their warrant is discovered.
Therefore, if you have an active warrant in New York, it is strongly recommended that you consult with an attorney about your options before attempting to travel outside of the United States.