Yes you can use oilbased undercoat, I always do when I paint MDF, but thin well with white spirit the first UC, as the MDF sucks the paint, if you do it straight from the can you will be labouring, and will look very thick.
I always thin the first coat of UC, and slightly thin the 2nd, dont...