Not necessarily. Here's a sample for example.

https://github.com/haskell/cabal/blob/master/.gitignore