To determine if you need oil:
1. Check your oil level: Use the dipstick to check if the oil level is within the acceptable range. If it's low, you absolutely need to add oil.
2. Consult the owner's manual: Your manual will have details on how to check the oil level and what to do if it's low. It also may list common check engine light causes for your specific model year.
3. Get the code read: A check engine light usually stores a diagnostic trouble code (DTC). You can get this code read using a code reader (available at most auto parts stores) or have a mechanic do it. The code will provide a much more specific indication of the problem.
Only after checking your oil level and getting the diagnostic trouble code can you definitively know if low oil is the cause of your check engine light. Driving with low oil can cause serious engine damage, so address this immediately if your oil level is low.