yes it is going to be the same purpose, but your results are going to differ a little, a cake made with shortening is going to be a little firmer (as short. is firmer than oil) and may leave a greasy residue in your mouth.
ew... it's bad enough to get it from the icing. I usually use butter instead of veg oil.
Thank you JanH... you are always so helpful!