It would depend on just how much nicer the detour is and how far the commute without a detour is.
With my current 22 mile one way commute, I would not be interested in adding another 2 miles. If I was riding only 12 miles, I might do the detour.
If you are a new rider, you may want to read Street Smarts:
http://www.bikexprt.com/streetsmarts/usa/index.htm