will the onboard computer reset right away if the problem is solved on 2000 Chevrolet Cavalier

emission warning light came on noticed fuel cap needed replacing did this light still on

Asked by for the 2000 Chevrolet Cavalier
Disconnect battery negative cable for about five minuetes. Light should go off but may return if a problem still exist!