Deductions & credits

I have an s-corp, my boss pays the s-corp and from there I pay myself. Can my s-corp write off the gas expenses even if he's paying for my services + gas receipts?