Incorrect. Amazon says it was not about the politics[0]. Plus, Amazon is still coming to NYC anyway, because there was still demand for an office there[1]. But now NYC gets it for free rather than paying billions in subsidies.
[0] https://www.cnbc.com/2019/07/10/amazon-reveals-the-truth-on-...
[1] https://nypost.com/2019/05/27/amazon-is-reportedly-eyeing-of...