It should work, but your request is quite vague.
The Framework could be used to dynamically add page content based on a URL variable.
But if you are offering a 'cart' solution you would probably want to look at your overall design to accommodate a 'quick cart' / summary that appears on each page showing customers what they have in their basket etc. You would also want to plan out the product / category navigation.
Framework won't actually give you an answer, but it could be used to help build you a solution to fit your requirements. My experience is that it is very flexible.
However, if you are thinking of 'dropping' a cart into an existing site I would seriously consider some planning work before you just jump into Dreamweaver.
It will save you a lot of headaches in the long run.