Only if you use a yaml 1.1 parser. Yaml 1.2 changed the behavior of how booleans are parsed, but it's only been 13 years since it was released, so I get why people might not have migrated to it yet.
https://docs.github.com/en/actions/using-workflows/workflow-...
It refers you to this YAML guide, which itself never mentions what version it's helping you learn: