Yes, Obsidian allows you to write code using markdown syntax. You can use triple backticks (''') to define code blocks and select the language for syntax highlighting. For inline code, use single backticks ('code').
Community plugins also improve coding capabilities, making Obsidian a versatile tool for documenting code and organising programming notes.