Not likely. You need to inform your landlord and give them a chance to fix the problem. Set a deadline with them. If they do not fix, you may be able to spend the money to fix the problem & deduct that amount from your rent. Check NY law.