Yes, rent 5 minutes from the office is likely very high, and it's much cheaper two hours away, and that's why most people live far away. But that is already a factor in salaries. If the office is in a high-cost-of-living area they have to offer higher salaries to get an equal caliber of workers.