Yes. You can take the input tax credit provided the payee should have gst registration and is regular in filing returns and this transaction should be reflected in payee's montly/qtrly return.
As per section 16 of CGST Act a registered persons is eligible to take credit of inputs charged on supply of goods or services or both if input is used for the furtherance of business.
A recipient of goods or services or both can take the credit of input tax only if he is in the possession of valid invoice or debit note issued by the registered supplier under goods and services acts and he has received goods or services or both. These are the two basic conditions for taking a credit of input tax charged on supply of goods or services or both.