Yes, when you buy an apartment you can specify all of this in the contract. A person or company can hold one / or more shares. In addition, the proportions can also be of different sizes.
I work more than 15 years in the Real Estate Industry in Egypt. I like to change things and my motto is : MAKE !