You can, and should, take the car to a place where they can read the error code stored in the car's computer. Every time the check engine light comes on, it means the computer has detected a problem and recorded information about it. You can take the car to just about any car parts store and ask them to read the codes for you. Most of them won't charge you anything. Some won't clear the codes, just inform you what they are, and that's fine. If they agree to clear the codes, you can then drive again normally and see if the check engine light comes back. It may have been a single occurrence glitch, but if the light comes back it means the problem is active and still there.
The code format is something similar to "P0123". They also have a plain english brief description for each code. When you know the code(s), you can come back to Justanswer and we will be able to tell you more about the problem, whether it is something that requires immediate attention or something that can wait until it is convenient for you to repair the problem. Sometimes it can just be a false alarm due to a failed sensor.