Yes, you can still deduct expenses, and your foreign income may qualify for the Foreign Earned Income Exclusion.
Here's some info that can help you:
https://ttlc.intuit.com/replies/3290703