Yes, I guess the solution will work. However, if you are new to the field then I will not suggest you to go this way. As, it gets more and more complicated for a newbie. You can go for shopify for plug and play solution. If you want to know about Shopify and looking for the key differences...