No, an S corporation cannot have foreign shareholders. The IRS requires all S corp shareholders to be US citizens or residents.