Does a car that has not been used for a long time need an oil change?

Yes. The oil change recommendation is either by kilometers traveled or every year, whichever comes first. Once in the sump, lubricant components can degrade.