The formatter is similar to Prettier in that regard, yes. Recently we decided to deviate in one specific case for accessibility reasons, but it’s a rare exception: https://fosstodon.org/@biomejs/113163964170882716
The linter is less opinionated, but it’s not concerned with formatting.