Well, there is no way to know for sure without either asking Samsung directly, or trying it. I would suggest mailing or contacting them in another way to ask if it will work. They are the only ones that will really know.
Also, to do it without checking first could cause you some serious problems with the device, possibly leaving it unusable. Not something you would want to do.
However, all that said, what I have found says that your device would only be upgradable from "Ice Cream Sandwich" to "KitKat", but not "Lollipop". The device probably isn't capable of handling any OS larger and newer. But, like I said above, you really should check with Samsung.
If you are wanting to do it, for the sake of apps, you might try and see if...