well of course you can!
example in the original post was just to display the improved look of the code function when there's only one line, i suppose.
tip: if you want to experiment with bbcode, send private messages to yourself or use the "go advanced" and "preview message" buttons at the bottom of your reply box