Off course time spent in traffic decreases productivity of workers. Just imagine a worker not getting enough sleep, waking up on time to beat traffic and he or she still get caught up with traffic for hours. You won't expect such worker to work like someone who got enough sleep and didn't get caught up with traffic.