You can, but not many taxis that operate at Istanbul Airport have the ability to process credit or debit card payments, so it’s better to carry enough Turkish lira to pay for your fare.