Yes, a foreigner can be a shareholder in a company. Although, the company must have a Singapore Resident Director.