A gas cap or check-engine light like this is almost always an EVAP system leak - the fuel system's vapor-containment test failing, usually because the cap is not sealing - and none of the three codes it can set affect how the car drives. Ranked by likelihood: a cap not tightened all the way (most common, free to fix, sets P0455); a worn or cracked gas cap seal (common, $10-$25); a cracked or loose EVAP hose (occasional, $100-$400); a failed purge or vent valve (occasional, $150-$400); a damaged fuel filler-neck seal (less common, $150-$600); and a cracked charcoal canister (least common, $300-$600).
Reseat the cap until it clicks (most caps click 2-3 times when sealed), check the cap and its rubber gasket for cracks or grit, and confirm the light is steady rather than flashing - a gas cap issue almost never makes the light flash. Even after fixing the cap, the light can take one to several full drive cycles to clear itself, so give it a few days before assuming the fix did not work. If it is still on after a week with a good, tight cap, get the code read to confirm which of the three EVAP codes it is.