Am I allowed to claim gas and mileage since I work almost 2 hours away from home?

I keep getting mixed answers.