Are both okay:
VIN number of the car
Or
VIN number for the car.
Yes, although it somewhat depends on the context.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
eg The thief created a new VIN number for the car.
for here focuses on purpose. of does not.