Probably. You can mark code blocks in .org files with the Emacs "mode" for them, and they will be highlighted appropriately (and you can use a shortcut to open a new buffer in said mode just to edit that block). I imagine that if PDF export exists (I assume it does), this would map to it.