A company can dilute just like that?

Of course. Public companies do this too. Where do you think the stocks awards that they give to employees come from?

They come from just printing more shares every quarter, diluting every shareholder.