No, you can install directly on example.com if you wish.
Subdomains are not a requirement.
However, with hindsight a year or two down the line, you may wish you had used something like community.example.com
We are facing this issue now, as we have a desire to run a web site on our root domain and switching everything over to community.example.com after six years of only using the root, is not ideal ![]()