For the most part... No. You might have a variable that shows a pallet exists, but not which particular pallet. The control (if at all) will track A/B, 1/2 , etc. But its a simple toggle and for reference.
A couple ways to do what you're looking for though. You could identify a variable to use that only looks for pallet numbers. Then, depending on how your pallet change program is written, or how you sequence your operations between multiple pallets, will determine how to set up the variable and integers.
Another way is to use a machine probe. Do you have one? You can install a pin, bore a hole or use a unique feature for each pallet. By probing for the "identifier" first, the machine can confirm that the correct pallet and the correct program is being run.