Yes you can, but you don't get a management interface, or any of the additional functionality outside of the git CLI like issue tracking, wikis, pull requests, web viewer/editor etc.
Having said that, GitHub Enterprise is ridonculously expensive. Other alternatives such as Gitlab or Gogs are much more affordable (Gogs is very close to being a GitHub clone and is open source.)