It really depends on what you mean by "earn".  If it is for work being done while in the US then the answer is no.  If it is passive income such as dividends from stock/mutual funds, then the answer is yes.  It all depends on whether the income earned is through your own efforts (work) or not.