Selling software built on top of Yii2

Someone came to me with an idea for some sports based online portals and to be able to package these portals and sell them. I would build a general website in Yii2. But I didn’t know how this worked in regards to packaging and selling a product. Am I able to do this or not? Sorry if this is a simply answer