No, you shouldn't. You should take it as a chance to learn and try not to do the same mistake again. Whatever weight the bug carries, you shouldn't feel bad. Because if you code without bugs, either you will be a robot or you take help from some robot!