US-based company A hires worker B, who is a citizen and resident of country C and does not travel to the US for work. Will the US government collect any taxes (income, Social Security, Medicare, etc) on B?
The company is hiring and paying the worker in country C. They will need to withhold and remit taxes, insurance etc. in accordance with local law. They may also be required to pay in local currency - some jurisdictions require employees to be paid in cash which means local money, not US dollars.
By the way, this is the same if B were a US citizen living in C. The only difference is that B would be required to submit tax returns (and possibly pay tax) for the US as well as C.