Rule of thumb - do not take it to the dealer unless you have no other option.
You need to find out what code is associated with the check engine light. Go to autozone or o'reilly and borrow the odb2 scanner from them. Then plug it to the socket under the steering wheel to the left, it will tell you what error code(s) exist. Then you need to repost your question with the error code(s). The code could range between indicating anything from a simple fix such as a bad O2 sensor (which will cost $15 in parts and 5 minutes to fix, to something serious. Reading the codes will not void the warranty in case you have one. Any auto store will charge you at least $100 to read this code, you could do it yourself and save it, it's so simple even a donkey could do it.