XXXX. most likely if the car seems to drive normally it is not a majorproblem. the check engine light could come on due to your gas cap not being on properly or tight. I would suggest getting the codes read in your car as soon as possible. most major auto parts stores such as autozone, kragen, etc car read your codes for free. I would suggest the dealer or a volvo specialist in your area.
If you check the gas cap and find it not on properly reinstall in properly and wait a day or 2 and light may go out.
Technician
20+ yrs volvo technician, Ase A1-A8, L1, A/C certified
Yes it is possible that it was caused by the gas cap. if the runs ok, and no light wait and see if it comes back, then go to the dealer. at can take a couple of days if certain conditions arent met to run the test.