Yes, because your git repository may disappear any time. I constantly encounter papers which link some GitHub URL long since dead.
A good open archive also makes your software work more easy to cite, for instance by assigning a DOI.
I have not deposited software on OSF but I did in Zenodo, where it's particularly easy for projects hosted on GitHub. See: https://help.zenodo.org/