You can encode anything you like on the barcode. However, price is not usually part of the barcode information as price tags are attached separately on products.