Yes, you can track the .gitignore file, but you do not have to.
The main reason of having this file into repository is to have everyone working on the project, ignoring same files and folders.
Also see this: Should you commit .gitignore into the Git repos?