I think the oil would break down eventually, but question what you would gain by adding it to compost. Looking at nutrition content on the label of a bottle of vegetable oil, there is some carbon in it, but no protein (therefore no nitrogen), no potassium. I can't comment on phosphorous, not on the label. Decomposition requires a certain carbon-to-nitrogen ratio, too much carbon relative to nitrogen will slow decompositon.