If you are in your own country of residence and have full rights there in terms of employment, then you can work for whatever employer chooses to hire you in that country.  It should not matter whether it is a US company if that company is authorized to do business in your country.