Sure have some leeway for the real genuine emergencies, but fixing a random bug or "finishing this off" is not worth hanging around after 5 for.
I did this and went from feeling burnt out, drained, and ultimately crushed at the end of each day, to leaving the office "hungry" and looking forward to coming back in tomorrow to continue fixing that bug or finishing off that thing or whatever with just enough energy remaining to get me through to 5pm again. Life is too short to "dedicate" yourself to a job.
TL:Dr - just do your job, don't be your job.