Internally hosted Providers?

Is it possible to host official providers (google, helm, etc) on internal servers and then have terraform reference those repo’s?