Yes, that’s possible. It’s quite straightforward actually – please take a look at this screenshot – each variation has its own EAN field. Please give it a try and let me know if you have any questions.
P.S. And yes, when the customer switches between variations on the frontend, EAN changes according to the selected variation.