Yes. I mean, that's the whole point of that part of the fifth amendment. There would be no need for an explicit carveout of self-incrimination if the government didn't have the general ability to compel witnesses to testify.
“The government can’t possibly do [basic function of every government since dawn of tribal life], can it?”
Yes indeed it can.