This depends on the broker that you sign up with. While some force you to buy whole shares (and even minimum lots of 100 shares), others allow you to buy fractional shares.