This is pretty much how I feel about it as well. Sometimes you'll deal with a more complex system where bugs might creep in even for an experienced developer, that then end up needing bugfixes for a week to come.
Yet you might also write code that does it's job great (mostly) without bugs a week later.