Some dealerships are jackoffs and will void it if you put on a different oil filler cap and others are cool with with just about anything as long as it didn't cause the problem the car is having. The only way to know for sure is you should probably go to your dealership and talk with the service manager and see what they say.