check engine light gas cap on 2001 Dodge Durango

I was told if the check engine light came on and it was because of the gas cap, that the light would go off after some recycle. Is this true? How long or how many miles does this take?

Asked by for the 2001 Dodge Durango
The Check Engine Light illuminate when there is a problem with your emission control system. The gas cap not properly installed is only one of the possible causes. See a technician who can read a trouble code off your car's computer.