It depends, but it is great help to look at the (new!) close message here:
This question was caused by a problem that can't be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was solved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting.
Implying that that it's not ontopic to be asking about simple errors like that. Simple of course being not very objective.
Another emphasis could be on "help future readers". If you made a random bug, it's hardly an interesting question anymore after you've added the
;. But if you make a mistake that sounds logical for some (e.g. a lot of people do it) and only after explanation one understands that this is not the right way, it might be helpful to answer.
(and some extra attention to the comment @rene posted: watch out for the trap of fixing a bug, and then getting into a comment spree/edit spree where the OP goes "but now it does this on the next line" ad infinitum)