Yes, you can override the global setting for code block line numbering on a per-code-block basis.
You can check the global setting for "Show line numbers on code samples" on your Book Theme page here:
...making sure to replace YOUR_BOOK with your book's unique web address.
You can override this setting on any code block.
To turn line numbering off on a code block, you can do this:
To turn line numbering on for a code block, you can do this:
Here is the relevant section from the Markua manual: