If all they did was read the code and suggested a fix then your getting screwed since you can buy a code reader on Amazon for $25...
... but if they read the code then have to do additional testing to narrow down the culprit (not all codes tell you exactly what needs to be done to fix the problem) then the fee could absolutely be worth it so you aren't throwing money/parts at a problem with potentially many variables