2015 Kia Soul - Rough ride

our kia idles rough we turned the hazard lights on last night and it almost stopped running

Is the check engine light on?