Yes sir tax cannot be deducted for salary which was not provided so you can reduce if from gross salary and claim refund.
If you need any assistance feel free to contact me.
Hope you find the information helpful if you do please rate it 5 and provide your valuable feedback for my improvement.
Thank you