Allocation of by Product Cost on Co product

Can we allocate By product cost on co products with respect to their quantity an AX?

No, by-products and co-products are linked to the production item - not directly to each other. You cannot have a by-product of a co-product, it is a by-product of the item you are making.