Alexsander,
Well, the Basis of Product allocation in ECC is a Logistics Information Structure. If you elect to create your own custom structure (this is common), you can update the key figures (which contain the allocation restriction values that you will impose on your customers) in any way that you and your programmers can conceive.
So, I would say the answer is yes, it is possible to create product allocation values based on sales history.
Best Regards,
DB49