it's really difficult to lose fat and put on muscle at the same time.
So if your goal is a six pack, eat and work out accordingly and if your goal is more muscle then u will most likely put on some fat.
I am by no means an expert in this, but I have learned from experience that not having a true idea which goal you want will leave you with months of getting no where. Even if eating healthy, you have to decide if you want to be in a calorie surplus or deficit and try to stick with it
So with that being said more cardio is never bad (keeps your heart strong), but if your goal is muscle you must make up the calories you burn with food.
And if your goal is a six pack (like my current goal) then you will have to eat less, but still make sure you lift to keep yourself from losing too much muscle.
Hope this advise helped, as I learned this the hard way.