Generally speaking, as long as the capital is obtained and can be transferred legally, the nation in which the money is earned is not relevant. Even money earned in the U.S. by a foreign national on a nonimmigrant visa is eligible if the worker had employment authorization.